🐛 fix route loading
This commit is contained in:
parent
bd32d183b6
commit
ad7a5f0ee5
@ -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);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user