From 1af0f58b2373817bfb7522b56a60dcdf710e86aa Mon Sep 17 00:00:00 2001 From: Matthew R Date: Mon, 29 Jun 2020 17:20:35 -0400 Subject: [PATCH] fix server route resolve --- src/class/Server.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 {