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

Add source route to /enrollment

parent 9fd0c96d
No related branches found
No related tags found
1 merge request!116Release v1.0.0
Pipeline #
......@@ -39,6 +39,13 @@ enrollmentApp.get('/years', (req, res, next) => {
next();
}, query, response('years'));
enrollmentApp.get('/source', (req, res, next) => {
req.sql.from('fonte')
.field('fonte', 'source')
.where('tabela = \'matricula\'');
next();
}, query, response('source'));
enrollmentApp.get('/location', (req, res, next) => {
req.sql = squel.select()
.field('id')
......
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