Skip to content
Snippets Groups Projects
Commit e1a94382 authored by Lucas Gabriel Lima's avatar Lucas Gabriel Lima
Browse files

fix routes

parent 6d8fb980
No related branches found
Tags v1.1.1
2 merge requests!116Release v1.0.0,!25Auth
Pipeline #
...@@ -25,11 +25,11 @@ api.get('/', (req, res) => { ...@@ -25,11 +25,11 @@ api.get('/', (req, res) => {
}); });
// mount API routes // mount API routes
api.use('/api/v1/enrollment', cache('1 day'), enrollment); api.use('/user', user);
api.use('/api/v1/state', cache('15 day'), state); api.use('/enrollment', cache('1 day'), enrollment);
api.use('/api/v1/region', cache('15 day'), region); api.use('/state', cache('15 day'), state);
api.use('/api/v1/city', cache('15 day'), city); api.use('/region', cache('15 day'), region);
api.use('/api/v1/school', cache('15 day'), school); api.use('/city', cache('15 day'), city);
api.use('/api/v1/user', user); api.use('/school', cache('15 day'), school);
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