Skip to content
Snippets Groups Projects
Commit 8d6d6985 authored by Fernando Gbur dos Santos's avatar Fernando Gbur dos Santos
Browse files

[FIX] Route object fixed

parent 986c7ecb
No related branches found
No related tags found
3 merge requests!417[ADD] Indicator "Taxa de Atendimento Educacional" updated on production!,!416[ADD] Route almost ready, some tests needed. Comments added and filters that...,!414[ADD] Route almost ready, some tests needed. Comments added and filters that...
......@@ -49,7 +49,7 @@ rateSchoolNewApp.get('/years', (req, res, next) => {
next();
}, query, response('years'));
PnadNovoApp.get('/region', (req, res, next) => {
rateSchoolNewApp.get('/region', (req, res, next) => {
req.result = []
for (let i = 1; i < 6; i++) {
req.result.push({
......@@ -60,7 +60,7 @@ PnadNovoApp.get('/region', (req, res, next) => {
next();
}, response('region'));
PnadNovoApp.get('/cap_code', (req, res, next) => {
rateSchoolNewApp.get('/cap_code', (req, res, next) => {
req.result = []
for (let i = 11; i < 54; i++) {
if (id2str.capitalCode(i) !== 'Não informado') {
......@@ -74,7 +74,7 @@ PnadNovoApp.get('/cap_code', (req, res, next) => {
next();
}, response('cap_code'));
PnadNovoApp.get('/metro_code', (req, res, next) => {
rateSchoolNewApp.get('/metro_code', (req, res, next) => {
req.result = []
for (let i = 13; i < 53; i++) {
if (id2str.metroCode(i) !== 'Não informado') {
......@@ -88,7 +88,7 @@ PnadNovoApp.get('/metro_code', (req, res, next) => {
next();
}, response('metro_code'));
PnadNovoApp.get('/gender', (req, res, next) => {
rateSchoolNewApp.get('/gender', (req, res, next) => {
req.result = []
for (let i = 1; i < 3; i++) {
req.result.push({
......@@ -98,7 +98,7 @@ PnadNovoApp.get('/gender', (req, res, next) => {
next();
}, response('gender'));
PnadNovoApp.get('/bolsa_familia', (req, res, next) => {
rateSchoolNewApp.get('/bolsa_familia', (req, res, next) => {
req.result = []
for (let i = 1; i < 3; i++) {
req.result.push({
......@@ -109,7 +109,7 @@ PnadNovoApp.get('/bolsa_familia', (req, res, next) => {
next();
}, response('bolsa_familia'));
PnadNovoApp.get('/state', (req, res, next) => {
rateSchoolNewApp.get('/state', (req, res, next) => {
req.result = []
for (let i = 11; i < 54; i++) {
if (id2str.stateName(i) !== 'Não declarada') {
......@@ -123,7 +123,7 @@ PnadNovoApp.get('/state', (req, res, next) => {
next();
}, response('state'));
PnadNovoApp.get('/income_range', (req, res, next) => {
rateSchoolNewApp.get('/income_range', (req, res, next) => {
req.result = []
for (let i = 1; i < 8; i++) {
req.result.push({
......
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