summary refs log tree commit diff
path: root/api/src/Server.ts
diff options
context:
space:
mode:
authorFlam3rboy <34555296+Flam3rboy@users.noreply.github.com>2021-10-10 12:35:46 +0200
committerFlam3rboy <34555296+Flam3rboy@users.noreply.github.com>2021-10-10 12:35:46 +0200
commit4722dd5d978e39b203c4ded9c56697467b9f7ece (patch)
treef108c092ad2a41e34d5e715a58a56e9bebef912f /api/src/Server.ts
parent:bug: fix windows process.getuid (diff)
downloadserver-4722dd5d978e39b203c4ded9c56697467b9f7ece.tar.xz
:bug: fix tsc compiler
Diffstat (limited to 'api/src/Server.ts')
-rw-r--r--api/src/Server.ts3
1 files changed, 2 insertions, 1 deletions
diff --git a/api/src/Server.ts b/api/src/Server.ts
index 19e3d245..1f11a295 100644
--- a/api/src/Server.ts
+++ b/api/src/Server.ts
@@ -11,6 +11,7 @@ import TestClient from "./middlewares/TestClient";
 import { initTranslation } from "./middlewares/Translation";
 import morgan from "morgan";
 import { initInstance } from "./util/Instance";
+import { registerRoutes } from "@fosscord/util";
 
 export interface FosscordServerOptions extends ServerOptions {}
 
@@ -72,7 +73,7 @@ export class FosscordServer extends Server {
 		await initRateLimits(api);
 		await initTranslation(api);
 
-		this.routes = await this.registerRoutes(path.join(__dirname, "routes", "/"));
+		this.routes = await registerRoutes(this, path.join(__dirname, "routes", "/"));
 
 		api.use("*", (error: any, req: Request, res: Response, next: NextFunction) => {
 			if (error) return next(error);