From 69406c43ea899c3956aa16a9e0834aff40c8510f Mon Sep 17 00:00:00 2001 From: Noah Loomans Date: Sat, 27 May 2017 11:44:07 +0200 Subject: Rewrite /meetingpointProxy into /get This makes it simple and more secure, and this improves server logging. --- app.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'app.js') diff --git a/app.js b/app.js index 934429d..c0a0b35 100644 --- a/app.js +++ b/app.js @@ -6,7 +6,7 @@ const bodyParser = require('body-parser') const compression = require('compression') const routes = require('./routes/index') -const meetingpointProxy = require('./routes/meetingpointProxy') +const getSchedule = require('./routes/getSchedule') const manifest = require('./routes/manifest') const app = express() @@ -26,7 +26,7 @@ app.use('/manifest.webmanifest', manifest) app.use(express.static(path.join(__dirname, 'public'))) app.use('/', routes) -app.use('/meetingpointProxy', meetingpointProxy) +app.use('/get', getSchedule) // catch 404 and forward to error handler app.use(function (req, res, next) { -- cgit v1.1