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

Merge branch 'development' of gitlab.c3sl.ufpr.br:simcaq/simcaq-node into development

parents fba631c4 10e07ca4
No related branches found
No related tags found
No related merge requests found
Pipeline #
...@@ -64,6 +64,20 @@ enrollmentApp.get('/education_level', (req, res, next) => { ...@@ -64,6 +64,20 @@ enrollmentApp.get('/education_level', (req, res, next) => {
next(); next();
}, query, response('education_level')); }, query, response('education_level'));
/**
* Returns all adm dependency
*
*/
enrollmentApp.get('/adm_dependency', (req, res, next) => {
req.sql = squel.select()
.from('dependencia_adms')
.field('pk_dependencia_adm_id', 'id')
.field('nome', 'name')
.toParam();
next();
}, query, response('adm_dependency'));
enrollmentApp.get('/data', (req, res, next) => { enrollmentApp.get('/data', (req, res, next) => {
req.sql = squel.select().from('turmas').toParam(); req.sql = squel.select().from('turmas').toParam();
next(); next();
......
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