Commit abdf9981 authored by Corentin Mors's avatar Corentin Mors
Browse files

Prevent access to all sections

parent 0ee50a5a
......@@ -20,11 +20,11 @@ router.route('/location')
router.route('/dashboard')
.get(mid.requiresLogin, indexController.dashboard);
router.use('/users', require('./userRoute'));
router.use('/resources', require('./resourceRoute'));
router.use('/checklists', require('./checklistRoute'));
router.use('/sources', require('./sourceRoute'));
router.use('/guides', require('./guideRoute'));
router.use('/datacenters', require('./datacenterRoute'));
router.use('/users', mid.requiresLogin, require('./userRoute'));
router.use('/resources', mid.requiresLogin, require('./resourceRoute'));
router.use('/checklists', mid.requiresLogin, require('./checklistRoute'));
router.use('/sources', mid.requiresLogin, require('./sourceRoute'));
router.use('/guides', mid.requiresLogin, require('./guideRoute'));
router.use('/datacenters', mid.requiresLogin, require('./datacenterRoute'));
module.exports = router
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