diff options
Diffstat (limited to 'src/api/Server.ts')
-rw-r--r-- | src/api/Server.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/api/Server.ts b/src/api/Server.ts index f88f94c0..032e923e 100644 --- a/src/api/Server.ts +++ b/src/api/Server.ts @@ -32,7 +32,7 @@ import "missing-native-js-functions"; import morgan from "morgan"; import path from "path"; import { red } from "picocolors"; -import { CORS, initAuthentication } from "./middlewares/"; +import { Authentication, CORS } from "./middlewares/"; import { BodyParser } from "./middlewares/BodyParser"; import { ErrorHandler } from "./middlewares/ErrorHandler"; import { initRateLimits } from "./middlewares/RateLimit"; @@ -106,7 +106,7 @@ export class FosscordServer extends Server { // @ts-ignore this.app = api; - initAuthentication(api); + api.use(Authentication); await initRateLimits(api); await initTranslation(api); |