Skip to content
Snippets Groups Projects
Commit c891fc56 authored by Fernando Erd's avatar Fernando Erd :ok_hand:
Browse files

Add routes aux in the school.js

parent a1e89273
No related branches found
No related tags found
2 merge requests!116Release v1.0.0,!47School number count
Pipeline #
......@@ -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',
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment