Skip to content
Snippets Groups Projects
Commit 76902f96 authored by Vytor Calixto's avatar Vytor Calixto :space_invader:
Browse files

Add source route o pibpercapita

parent 54f0b06c
No related branches found
No related tags found
1 merge request!116Release v1.0.0
Pipeline #
...@@ -37,6 +37,13 @@ pibpercapitaApp.get('/years', (req, res, next) => { ...@@ -37,6 +37,13 @@ pibpercapitaApp.get('/years', (req, res, next) => {
next(); next();
}, query, response('years')); }, query, response('years'));
pibpercapitaApp.get('/source', (req, res, next) => {
req.sql.from('fonte')
.field('fonte', 'source')
.where('tabela = \'ibge_pib\'');
next();
}, query, response('source'));
pibpercapitaApp.get('/income_level', (req, res, next) => { pibpercapitaApp.get('/income_level', (req, res, next) => {
req.result = [ req.result = [
{id: 1, name: "1º quintil – 20% menores"}, {id: 1, name: "1º quintil – 20% menores"},
......
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