Commit 74d00c0d authored by Corentin Mors's avatar Corentin Mors
Browse files

Prevent some accesses

parent e4b19690
......@@ -12,13 +12,13 @@ router.route('/login')
.post(indexController.postLogin);
router.route('/logout')
.get(indexController.logout);
.get(mid.requiresLogin, indexController.logout);
router.route('/location')
.get(indexController.location);
.get(mid.requiresLogin, indexController.location);
router.route('/dashboard')
.get(indexController.dashboard);
.get(mid.requiresLogin, indexController.dashboard);
router.use('/users', require('./userRoute'));
router.use('/resources', require('./resourceRoute'));
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment