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) => { ...@@ -43,12 +43,12 @@ classroomApp.get('/adm_dependency_detailed', (req, res, next) => {
}, query, response('adm_dependency_detailed')); }, query, response('adm_dependency_detailed'));
classroomApp.get('/location', (req, res, next) => { classroomApp.get('/location', (req, res, next) => {
req.sql = squel.select() req.result = [
.field('id') {id: 1, name: 'Urbana'},
.field('descricao', 'name') {id: 2, name: 'Rural'}
.from('localizacao'); ];
next() next();
}, query, response('location')); }, response('location'));
rqf.addField({ rqf.addField({
name: 'filter', 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