Skip to content
Snippets Groups Projects
Commit 1fba58f6 authored by ns17's avatar ns17
Browse files

fixing indigenous route

parent 3505b96f
No related branches found
No related tags found
2 merge requests!48Development,!40Rotas indigenas
...@@ -140,6 +140,6 @@ indigenasSchoolsApp.get('/', rqf.parse(), rqf.build(), function (req, res, next) ...@@ -140,6 +140,6 @@ indigenasSchoolsApp.get('/', rqf.parse(), rqf.build(), function (req, res, next)
console.log(req.sql.toString()); console.log(req.sql.toString());
req.sql.field('SUM(total) AS Total').from('terras_indigenas'); req.sql.field('SUM(total) AS Total').from('terras_indigenas');
next(); next();
}, query, response('terras_ind')); }, query, response('indigenas_mat'));
module.exports = indigenasSchoolsApp; module.exports = indigenasSchoolsApp;
\ No newline at end of file
...@@ -140,6 +140,6 @@ indigenasSchoolsApp.get('/', rqf.parse(), rqf.build(), function (req, res, next) ...@@ -140,6 +140,6 @@ indigenasSchoolsApp.get('/', rqf.parse(), rqf.build(), function (req, res, next)
console.log(req.sql.toString()); console.log(req.sql.toString());
req.sql.field('COUNT(distinct id) AS Total').from('terras_indigenas'); req.sql.field('COUNT(distinct id) AS Total').from('terras_indigenas');
next(); next();
}, query, response('terras_ind')); }, query, response('indigenas_esc'));
module.exports = indigenasSchoolsApp; module.exports = indigenasSchoolsApp;
\ No newline at end of file
...@@ -128,10 +128,6 @@ const indigenas_schools = require(`${libs}/routes/SMPPIR/indigenas_schools`); ...@@ -128,10 +128,6 @@ const indigenas_schools = require(`${libs}/routes/SMPPIR/indigenas_schools`);
const indigenas_enrollment = require(`${libs}/routes/SMPPIR/indigenas_enrollment`); const indigenas_enrollment = require(`${libs}/routes/SMPPIR/indigenas_enrollment`);
const indigenas_schools = require(`${libs}/routes/SMPPIR/indigenas_schools`);
const indigenas_enrollment = require(`${libs}/routes/SMPPIR/indigenas_enrollment`);
api.get('/', (req, res) => { api.get('/', (req, res) => {
res.json({ msg: 'SMPPIR API is running' }); res.json({ msg: 'SMPPIR API is running' });
}); });
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment