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

Add classroom route to api

parent d924288b
No related branches found
No related tags found
2 merge requests!116Release v1.0.0,!38Classroom count route
Pipeline #
...@@ -26,6 +26,8 @@ const simulation = require('./simulation'); ...@@ -26,6 +26,8 @@ const simulation = require('./simulation');
const user = require('./user'); const user = require('./user');
const classroom = require('./classroom');
api.get('/', (req, res) => { api.get('/', (req, res) => {
res.json({ msg: 'SimCAQ API is running' }); res.json({ msg: 'SimCAQ API is running' });
}); });
...@@ -40,5 +42,6 @@ api.use('/region', cache('15 day'), region); ...@@ -40,5 +42,6 @@ api.use('/region', cache('15 day'), region);
api.use('/city', cache('15 day'), city); api.use('/city', cache('15 day'), city);
api.use('/school', cache('15 day'), school); api.use('/school', cache('15 day'), school);
api.use('/spatial', cache('1 day'), spatial); api.use('/spatial', cache('1 day'), spatial);
api.use('/classroom', cache('15 day'), classroom);
module.exports = api; module.exports = api;
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