mirror of
https://github.com/spacebarchat/server.git
synced 2026-04-01 02:45:40 +00:00
🐛 fix route loading
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user