fix: filter out non-api

This commit is contained in:
Methapon2001 2024-04-04 09:14:12 +07:00
parent 8c898c4faa
commit cd6e2040af

View file

@ -16,7 +16,7 @@ const LOG_LEVEL_MAP: Record<string, number> = {
};
async function logMiddleware(req: Request, res: Response, next: NextFunction) {
if (!req.url.startsWith("/api")) return next();
if (!req.url.startsWith("/api/")) return next();
let data: any;