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

[ADD] Adding subroute 'illiteracy' to return available options

parent 57493dc8
No related branches found
No related tags found
3 merge requests!391Hom -> Prod,!386Merge development -> homologa,!383FIrst deploy of new route 'new_pnad'
......@@ -46,6 +46,14 @@ PnadNovoApp.get('/years', (req, res, next) => {
next();
}, query, response('years'));
PnadNovoApp.get('/illiteracy', (req, res, next) => {
req.result = [
{id: 0, name: 'Não'},
{id: 1, name: 'Sim'},
{id: 9, name: 'Não se aplica - 14 anos ou menos'}
];
}, query, response('illiteracy'));
rqf.addField({
name: 'filter',
field: false,
......@@ -313,5 +321,4 @@ PnadNovoApp.get('/', rqf.parse(), rqf.build(), (req, res, next) => {
next();
}, query, response('pnad_novo'));
module.exports = PnadNovoApp;
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