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

Add source route to idhm

parent d4c0b859
No related branches found
No related tags found
1 merge request!116Release v1.0.0
Pipeline #
......@@ -65,6 +65,13 @@ idhmApp.get('/years', (req, res, next) => {
next();
}, response('years'));
idhmApp.get('/source', (req, res, next) => {
req.sql.from('fonte')
.field('fonte', 'source')
.where('tabela = \'adh_idh\'');
next();
}, query, response('source'));
idhmApp.get('/IDHM_level', (req, res, next) => {
req.result = [
{id: null, name: 'Não classificada'},
......
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