summary refs log tree commit diff
path: root/api/src/Server.ts
diff options
context:
space:
mode:
authorTheArcaneBrony <myrainbowdash949@gmail.com>2022-07-19 07:21:26 +0200
committerTheArcaneBrony <myrainbowdash949@gmail.com>2022-08-09 23:28:27 +0200
commit279ec10081f245f4d5bbca8b63485c841f619e35 (patch)
tree4e58b7bb26fa3f5f60cfc8888b9f37a258146083 /api/src/Server.ts
parentupdate node types to v18, ditch node-fetch (diff)
downloadserver-279ec10081f245f4d5bbca8b63485c841f619e35.tar.xz
State update, havent tested
Diffstat (limited to 'api/src/Server.ts')
-rw-r--r--api/src/Server.ts8
1 files changed, 3 insertions, 5 deletions
diff --git a/api/src/Server.ts b/api/src/Server.ts
index 2b38f4a1..f309834b 100644
--- a/api/src/Server.ts
+++ b/api/src/Server.ts
@@ -1,7 +1,6 @@
-import "missing-native-js-functions";
 import { Server, ServerOptions } from "lambert-server";
 import { Authentication, CORS } from "./middlewares/";
-import { Config, initDatabase, initEvent } from "@fosscord/util";
+import { Config, initDatabase, initEvent, registerRoutes } from "@fosscord/util";
 import { ErrorHandler } from "./middlewares/ErrorHandler";
 import { BodyParser } from "./middlewares/BodyParser";
 import { Router, Request, Response, NextFunction } from "express";
@@ -11,7 +10,6 @@ import TestClient from "./middlewares/TestClient";
 import { initTranslation } from "./middlewares/Translation";
 import morgan from "morgan";
 import { initInstance } from "./util/handlers/Instance";
-import { registerRoutes } from "@fosscord/util";
 import { red } from "picocolors"
 
 export interface FosscordServerOptions extends ServerOptions {}
@@ -50,7 +48,7 @@ export class FosscordServer extends Server {
 					}
 				})
 			);
-		};
+		}
 
 		this.app.use(CORS);
 		this.app.use(BodyParser({ inflate: true, limit: "10mb" }));
@@ -91,4 +89,4 @@ export class FosscordServer extends Server {
 		
 		return super.start();
 	}
-};
\ No newline at end of file
+}
\ No newline at end of file