From ec128823d90175496ed61168b354abf649584945 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kasper=20Rynning-T=C3=B8nnesen?= Date: Thu, 1 Mar 2018 15:55:02 +0100 Subject: [PATCH] Redirecting /api/help to github --- server/routing/client/api.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/server/routing/client/api.js b/server/routing/client/api.js index f779b1fc..9340feea 100644 --- a/server/routing/client/api.js +++ b/server/routing/client/api.js @@ -8,6 +8,11 @@ router.use(function(req, res, next) { next(); // make sure we go to the next routes and don't stop here }); +router.route('/api/help').get(function(req, res) { + res.redirect('https://github.com/zoff-music/zoff/blob/master/server/README.md'); + return; +}) + router.route('/api/frontpages').get(function(req, res) { db.collection("frontpage_lists").find({frontpage: true, count: {$gt: 0}}, function(err, docs) { db.collection("connected_users").find({"_id": "total_users"}, function(err, tot) {