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

Add /adm_dependency route

parent 08e3d78b
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) => {
next();
}, 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) => {
req.sql = squel.select().from('turmas').toParam();
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