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

Add source route to /school

parent a69cde03
No related branches found
No related tags found
1 merge request!116Release v1.0.0
......@@ -37,6 +37,13 @@ schoolApp.get('/years', cache('15 day'), (req, res, next) => {
next();
}, query, response('years'));
schoolApp.get('/source', (req, res, next) => {
req.sql.from('fonte')
.field('fonte', 'source')
.where('tabela = \'escola\'');
next();
}, query, response('source'));
schoolApp.get('/location', cache('15 day'), (req, res, next) => {
req.result = [
{id: 1, name: 'Urbana'},
......
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