summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorFlam3rboy <34555296+Flam3rboy@users.noreply.github.com>2021-05-24 20:57:22 +0200
committerFlam3rboy <34555296+Flam3rboy@users.noreply.github.com>2021-05-24 20:57:22 +0200
commitad7a5f0ee51ab4c8cb06f29af8cfd3abd409fde2 (patch)
treed3d7bbc867095f8d220b5aadd5f2ad892acdb027 /src
parentnpm i @fosscord/server-util@1.3.2 (diff)
downloadserver-ad7a5f0ee51ab4c8cb06f29af8cfd3abd409fde2.tar.xz
:bug: fix route loading
Diffstat (limited to 'src')
-rw-r--r--src/Server.ts2
1 files changed, 1 insertions, 1 deletions
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);