From ad7a5f0ee51ab4c8cb06f29af8cfd3abd409fde2 Mon Sep 17 00:00:00 2001 From: Flam3rboy <34555296+Flam3rboy@users.noreply.github.com> Date: Mon, 24 May 2021 20:57:22 +0200 Subject: [PATCH] :bug: fix route loading --- src/Server.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Server.ts b/src/Server.ts index 9c3ea9d6..b1fe3c90 100644 --- a/src/Server.ts +++ b/src/Server.ts @@ -85,7 +85,7 @@ export class FosscordServer extends Server { // @ts-ignore this.app = prefix; - this.routes = await this.registerRoutes(path.join(__dirname, "routes")); + this.routes = await this.registerRoutes(path.join(__dirname, "routes", "/")); app.use("/api/v8", prefix); this.app = app; this.app.use(ErrorHandler);