summary refs log tree commit diff
path: root/api/src/middlewares
diff options
context:
space:
mode:
Diffstat (limited to 'api/src/middlewares')
-rw-r--r--api/src/middlewares/Authentication.ts1
-rw-r--r--api/src/middlewares/RateLimit.ts1
2 files changed, 0 insertions, 2 deletions
diff --git a/api/src/middlewares/Authentication.ts b/api/src/middlewares/Authentication.ts

index 42bb5374..06eeab39 100644 --- a/api/src/middlewares/Authentication.ts +++ b/api/src/middlewares/Authentication.ts
@@ -24,7 +24,6 @@ declare global { } } } -// TODO wenn client offen ist, wird http://localhost:8080/api/v9/users/@me/guild-events blockiert? export async function Authentication(req: Request, res: Response, next: NextFunction) { if (req.method === "OPTIONS") return res.sendStatus(204); diff --git a/api/src/middlewares/RateLimit.ts b/api/src/middlewares/RateLimit.ts
index 37c54969..acf92606 100644 --- a/api/src/middlewares/RateLimit.ts +++ b/api/src/middlewares/RateLimit.ts
@@ -21,7 +21,6 @@ TODO: different for methods (GET/POST) var Cache = new Map<string, Bucket>(); const EventRateLimit = "ratelimit"; -// TODO: FIX with new event handling export default function RateLimit(opts: { bucket?: string; window: number;