aboutsummaryrefslogtreecommitdiff
path: root/app.js
diff options
context:
space:
mode:
authorNoah Loomans <noahloomans@gmail.com>2017-05-27 11:44:07 +0200
committerNoah Loomans <noahloomans@gmail.com>2017-05-27 11:44:07 +0200
commit69406c43ea899c3956aa16a9e0834aff40c8510f (patch)
tree2eea9d827f0a692a63dd8e1117ba892f1300cc7d /app.js
parent457946531c57a546eeb3c42042ad192ac9826299 (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.js4
1 files changed, 2 insertions, 2 deletions
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) {