diff --git a/src/class/Server.ts b/src/class/Server.ts index f000868..9351437 100644 --- a/src/class/Server.ts +++ b/src/class/Server.ts @@ -29,7 +29,7 @@ export default class Server { } private async loadRoutes(): Promise { - const routes = await fs.readdir(`${__dirname}/routes`); + const routes = await fs.readdir(`${__dirname}/../api/routes`); routes.forEach(async (routeFile) => { if (routeFile === 'index.js') return; try {