diff --git a/app.js b/app.js index a277399..531380a 100644 --- a/app.js +++ b/app.js @@ -29,7 +29,7 @@ module.exports = function (fastify, opts, next) { // define your routes in one of these fastify.register(AutoLoad, { dir: path.join(__dirname, 'services'), - options: Object.assign({ prefix: '/api' }, opts) + options: Object.assign({ prefix: '/' }, opts) }) // Make sure to call next when done diff --git a/services/auth.js b/services/api/auth.js similarity index 100% rename from services/auth.js rename to services/api/auth.js diff --git a/services/todo.js b/services/api/todo.js similarity index 100% rename from services/todo.js rename to services/api/todo.js