diff --git a/src/libs/routes/idhm.js b/src/libs/routes/idhm.js index f9336c5a256235ddb3dd7a4a68a7c920ba43066d..c757a0e7227a0acd1fef7336b14aedb41ec494da 100644 --- a/src/libs/routes/idhm.js +++ b/src/libs/routes/idhm.js @@ -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'},