diff --git a/src/libs/routes/enrollment.js b/src/libs/routes/enrollment.js index a5feaac39f5fcc0365bba527fc2f8156fa94c1d7..ba4d89320543232ca197ab534aebc5a0bdac6ef6 100644 --- a/src/libs/routes/enrollment.js +++ b/src/libs/routes/enrollment.js @@ -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')