fix: filter out non-api
This commit is contained in:
parent
8c898c4faa
commit
cd6e2040af
1 changed files with 1 additions and 1 deletions
|
|
@ -16,7 +16,7 @@ const LOG_LEVEL_MAP: Record<string, number> = {
|
||||||
};
|
};
|
||||||
|
|
||||||
async function logMiddleware(req: Request, res: Response, next: NextFunction) {
|
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;
|
let data: any;
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue