Skip to content
Snippets Groups Projects
Commit bec57a27 authored by Gabriel Ruschel's avatar Gabriel Ruschel
Browse files

Location subroute hotfix

parent 296410c6
No related branches found
No related tags found
2 merge requests!116Release v1.0.0,!42Location subroute hotfix
Pipeline #
......@@ -43,12 +43,12 @@ classroomApp.get('/adm_dependency_detailed', (req, res, next) => {
}, query, response('adm_dependency_detailed'));
classroomApp.get('/location', (req, res, next) => {
req.sql = squel.select()
.field('id')
.field('descricao', 'name')
.from('localizacao');
next()
}, query, response('location'));
req.result = [
{id: 1, name: 'Urbana'},
{id: 2, name: 'Rural'}
];
next();
}, response('location'));
rqf.addField({
name: 'filter',
......
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