🐛 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 // @ts-ignore
this.app = prefix; 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); app.use("/api/v8", prefix);
this.app = app; this.app = app;
this.app.use(ErrorHandler); this.app.use(ErrorHandler);