diff --git a/libs/app.js b/libs/app.js index 8797bdf363c47245e530affb00324ec4922a5cb3..544f649b66c258f98cad7ef867217c2a159dfae6 100644 --- a/libs/app.js +++ b/libs/app.js @@ -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){