diff --git a/src/libs/routes/api.js b/src/libs/routes/api.js index 92d7d6bd81b4b981a5bf88163668e2aabe87965c..f6715eaa36c611eb5632d801cf3546ccd528fa16 100644 --- a/src/libs/routes/api.js +++ b/src/libs/routes/api.js @@ -184,7 +184,7 @@ api.use('/university', university); api.use('/university_teacher', universityTeacher); api.use('/course_count', courseCount); api.use('/school_location', schoolLocation); -api.use('/studentsAee', studentsAee); +api.use('/students_aee', studentsAee); api.use('/mesoregion', mesoregion); api.use('/microregion', microregion); api.use('/location', location); diff --git a/src/libs/routes/studentsAee.js b/src/libs/routes/studentsAee.js index 5f15aab8fbc5ff5f94481529af28e5f3060e3260..6b2d3f84056de1824f4efd84ba417e69e8759e79 100644 --- a/src/libs/routes/studentsAee.js +++ b/src/libs/routes/studentsAee.js @@ -204,7 +204,7 @@ rqf.addField({ studentsAeeApp.get('/', rqf.parse(), (req, res, next) => { req.sql.from('numero_estudantes_aee') .field('ano_censo') - .field('COUNT(distinct id_aluno)') + .field('COUNT(distinct id_aluno)', 'total') .group('ano_censo') .order('ano_censo') next();