summary refs log tree commit diff
path: root/src/Server.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/Server.ts')
-rw-r--r--src/Server.ts1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/Server.ts b/src/Server.ts

index 5ae65918..452bc1fe 100644 --- a/src/Server.ts +++ b/src/Server.ts
@@ -94,6 +94,7 @@ export class FosscordServer extends Server { this.app = prefix; this.routes = await this.registerRoutes(path.join(__dirname, "routes", "/")); + app.use("/api", prefix); // allow unversioned requests app.use("/api/v8", prefix); this.app = app; this.app.use(ErrorHandler);