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

Change root routes to be mounted on /v1/

parent 7e732f91
No related branches found
No related tags found
No related merge requests found
Pipeline #
......@@ -25,10 +25,10 @@ app.use(cookieParser())
app.use(cors())
app.use(methodOverride())
app.use('/api/v1/', api)
app.use('/api/v1/states', states)
app.use('/api/v1/regions', regions)
app.use('/api/v1/cities', cities)
app.use('/v1/', api)
app.use('/v1/states', states)
app.use('/v1/regions', regions)
app.use('/v1/cities', cities)
// catch 404 and forward to error handler
app.use(function(req, res, next){
......
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