diff --git a/src/class/Server.ts b/src/class/Server.ts index ce4c056..f000868 100644 --- a/src/class/Server.ts +++ b/src/class/Server.ts @@ -34,7 +34,7 @@ export default class Server { if (routeFile === 'index.js') return; try { // eslint-disable-next-line new-cap - const route: Route = new (require(`${__dirname}/routes/${routeFile}`).default)(this); + const route: Route = new (require(`${__dirname}/../api/routes/${routeFile}`).default)(this); if (route.conf.deprecated === true) { route.deprecated(); } else if (route.conf.maintenance === true) {