✨ typeorm api rewrite done

This commit is contained in:
Flam3rboy
2021-08-29 00:03:40 +02:00
parent c21c342821
commit e99008a1a5
48 changed files with 465 additions and 991 deletions
+1 -1
View File
@@ -28,7 +28,7 @@ declare global {
export async function Authentication(req: Request, res: Response, next: NextFunction) {
if (req.method === "OPTIONS") return res.sendStatus(204);
const url = req.url.replace(API_PREFIX, "");
if (url.startsWith("/invites") && req.method === "GET") return next(); // @ts-ignore
if (url.startsWith("/invites") && req.method === "GET") return next();
if (
NO_AUTHORIZATION_ROUTES.some((x) => {
if (typeof x === "string") return url.startsWith(x);