From c891fc56da8fa5c2022a4c8f061dd971aa737d17 Mon Sep 17 00:00:00 2001
From: Fernando Erd <fce15@inf.ufpr.br>
Date: Mon, 24 Apr 2017 10:23:51 -0300
Subject: [PATCH] Add routes aux in the school.js

---
 src/libs/routes/school.js | 181 +++++++++++++++++++++++++++++++++++++-
 1 file changed, 179 insertions(+), 2 deletions(-)

diff --git a/src/libs/routes/school.js b/src/libs/routes/school.js
index 94b19a5c..0c35609f 100644
--- a/src/libs/routes/school.js
+++ b/src/libs/routes/school.js
@@ -39,6 +39,14 @@ schoolApp.get('/adm_dependency_detailed', (req, res, next) => {
     next();
 }, query, response('adm_dependency_detailed'));
 
+schoolApp.get('/government_agreement', (req, res, next) => {
+    req.result = [
+        {id: 0, name: 'Não'},
+        {id: 1, name: 'Sim'}
+    ];
+    next();
+}, response('government_agreement'));
+
 schoolApp.get('/agreement', (req, res, next) => {
     req.result = [
         {id: 1, name: 'Estadual'},
@@ -48,6 +56,47 @@ schoolApp.get('/agreement', (req, res, next) => {
     next();
 }, response('agreement'));
 
+schoolApp.get('/building_school', (req, res, next) => {
+    req.result = [
+        {id: 0, name: 'Não'},
+        {id: 1, name: 'Sim'}
+    ];
+    next();
+}, response('building_school'));
+
+schoolApp.get('/informatics_lab', (req, res, next) => {
+    req.result = [
+        {id: 0, name: 'Não'},
+        {id: 1, name: 'Sim'}
+    ];
+    next();
+}, response('informatics_lab'));
+
+
+schoolApp.get('/science_lab', (req, res, next) => {
+    req.result = [
+        {id: 0, name: 'Não'},
+        {id: 1, name: 'Sim'}
+    ];
+    next();
+}, response('/science_lab'));
+
+schoolApp.get('/directors_room', (req, res, next) => {
+    req.result = [
+        {id: 0, name: 'Não'},
+        {id: 1, name: 'Sim'}
+    ];
+    next();
+}, response('directors_room'));
+
+schoolApp.get('/teacher_room', (req, res, next) => {
+    req.result = [
+        {id: 0, name: 'Não'},
+        {id: 1, name: 'Sim'}
+    ];
+    next();
+}, response('teacher_room'));
+
 schoolApp.get('/cook_room', (req, res, next) => {
     req.result = [
         {id: 0, name: 'Não'},
@@ -56,13 +105,141 @@ schoolApp.get('/cook_room', (req, res, next) => {
     next();
 }, response('cook_room'));
 
-schoolApp.get('/government_agreement', (req, res, next) => {
+schoolApp.get('/playground', (req, res, next) => {
     req.result = [
         {id: 0, name: 'Não'},
         {id: 1, name: 'Sim'}
     ];
     next();
-}, response('government_agreement'));
+}, response('playground'));
+
+schoolApp.get('/indor_sports_court', (req, res, next) => {
+    req.result = [
+        {id: 0, name: 'Não'},
+        {id: 1, name: 'Sim'}
+    ];
+    next();
+}, response('indor_sports_court'));
+
+schoolApp.get('/nusery', (req, res, next) => {
+    req.result = [
+        {id: 0, name: 'Não'},
+        {id: 1, name: 'Sim'}
+    ];
+    next();
+}, response('nusery'));
+
+schoolApp.get('/special_attendence_room', (req, res, next) => {
+    req.result = [
+        {id: 0, name: 'Não'},
+        {id: 1, name: 'Sim'}
+    ];
+    next();
+}, response('special_attendence_room'));
+
+schoolApp.get('/toilet_inside_building', (req, res, next) => {
+    req.result = [
+        {id: 0, name: 'Não'},
+        {id: 1, name: 'Sim'}
+    ];
+    next();
+}, response('toilet_inside_building'));
+
+schoolApp.get('/denpendency_pne', (req, res, next) => {
+    req.result = [
+        {id: 0, name: 'Não'},
+        {id: 1, name: 'Sim'}
+    ];
+    next();
+}, response('denpendency_pne'));
+
+schoolApp.get('/restroom_pne', (req, res, next) => {
+    req.result = [
+        {id: 0, name: 'Não'},
+        {id: 1, name: 'Sim'}
+    ];
+    next();
+}, response('restroom_pne'));
+
+schoolApp.get('/broadband', (req, res, next) => {
+    req.result = [
+        {id: 0, name: 'Não'},
+        {id: 1, name: 'Sim'}
+    ];
+    next();
+}, response('broadband'));
+
+schoolApp.get('/energy', (req, res, next) => {
+    req.result = [
+        {id: 0, name: 'Não'},
+        {id: 1, name: 'Sim'}
+    ];
+    next();
+}, response('energy'));
+
+schoolApp.get('/wastepipe', (req, res, next) => {
+    req.result = [
+        {id: 0, name: 'Não'},
+        {id: 1, name: 'Sim'}
+    ];
+    next();
+}, response('wastepipe'));
+
+schoolApp.get('/education_day_care_child', (req, res, next) => {
+    req.result = [
+        {id: 0, name: 'Não'},
+        {id: 1, name: 'Sim'}
+    ];
+    next();
+}, response('education_day_care_child'));
+
+schoolApp.get('/education_preschool_child', (req, res, next) => {
+    req.result = [
+        {id: 0, name: 'Não'},
+        {id: 1, name: 'Sim'}
+    ];
+    next();
+}, response('education_preschool_child'));
+
+schoolApp.get('/education_begin_elementary_school', (req, res, next) => {
+    req.result = [
+        {id: 0, name: 'Não'},
+        {id: 1, name: 'Sim'}
+    ];
+    next();
+}, response('education_begin_elementary_school'));
+
+schoolApp.get('/education_end_elementary_school', (req, res, next) => {
+    req.result = [
+        {id: 0, name: 'Não'},
+        {id: 1, name: 'Sim'}
+    ];
+    next();
+}, response('education_end_elementary_school'));
+
+schoolApp.get('/education_middle_school', (req, res, next) => {
+    req.result = [
+        {id: 0, name: 'Não'},
+        {id: 1, name: 'Sim'}
+    ];
+    next();
+}, response('education_middle_school'));
+
+schoolApp.get('/education_professional', (req, res, next) => {
+    req.result = [
+        {id: 0, name: 'Não'},
+        {id: 1, name: 'Sim'}
+    ];
+    next();
+}, response('education_professional'));
+
+schoolApp.get('/education_eja', (req, res, next) => {
+    req.result = [
+        {id: 0, name: 'Não'},
+        {id: 1, name: 'Sim'}
+    ];
+    next();
+}, response('education_eja'));
 
 rqf.addField({
     name: 'filter',
-- 
GitLab