mirror of
https://github.com/spacebarchat/server.git
synced 2024-11-11 05:02:37 +01:00
🐛 fix route loading
This commit is contained in:
parent
bd32d183b6
commit
ad7a5f0ee5
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user