1
0
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:
Flam3rboy 2021-05-24 20:57:22 +02:00
parent bd32d183b6
commit ad7a5f0ee5

View File

@ -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);