Skip to content
Snippets Groups Projects
Commit 8063e074 authored by Gabriel Ruschel's avatar Gabriel Ruschel
Browse files

Small route fix

parent 2c21fc50
No related branches found
No related tags found
2 merge requests!116Release v1.0.0,!38Classroom count route
Pipeline #
...@@ -132,7 +132,7 @@ rqf.addField({ ...@@ -132,7 +132,7 @@ rqf.addField({
} }
}); });
classroomApp.get('/count', rqf.parse(), rqf.build(), (req, res, next) => { classroomApp.get('/', rqf.parse(), rqf.build(), (req, res, next) => {
console.log(req.filter); console.log(req.filter);
req.sql.from('escola') req.sql.from('escola')
.field('SUM(escola.num_salas)', 'total') .field('SUM(escola.num_salas)', 'total')
......
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