diff options
author | Noah Loomans <noahloomans@gmail.com> | 2017-05-27 11:44:07 +0200 |
---|---|---|
committer | Noah Loomans <noahloomans@gmail.com> | 2017-05-27 11:44:07 +0200 |
commit | 69406c43ea899c3956aa16a9e0834aff40c8510f (patch) | |
tree | 2eea9d827f0a692a63dd8e1117ba892f1300cc7d /app.js | |
parent | 457946531c57a546eeb3c42042ad192ac9826299 (diff) |
Rewrite /meetingpointProxy into /get
This makes it simple and more secure, and this improves server logging.
Diffstat (limited to 'app.js')
-rw-r--r-- | app.js | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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) { |