From 212975f8a284d78bb0dfafcc99f67911d6691f3e Mon Sep 17 00:00:00 2001 From: Fernando Erd <fce15@inf.ufpr.br> Date: Thu, 4 May 2017 11:36:38 -0300 Subject: [PATCH] Add sub-route library_or_reading_room --- src/libs/routes/school.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/libs/routes/school.js b/src/libs/routes/school.js index 3f3fed69..22c1dbac 100644 --- a/src/libs/routes/school.js +++ b/src/libs/routes/school.js @@ -67,13 +67,13 @@ schoolApp.get('/building_school', (req, res, next) => { next(); }, response('building_school')); -schoolApp.get('/library', (req, res, next) => { +schoolApp.get('/library_or_reading_room', (req, res, next) => { req.result = [ {id: 0, name: 'Não'}, {id: 1, name: 'Sim'} ]; next(); -}, response('library')); +}, response('library_or_reading_room')); schoolApp.get('/informatics_lab', (req, res, next) => { req.result = [ -- GitLab