mirror of
https://github.com/sakaljurgis/kodi-api-server.git
synced 2026-07-09 04:47:41 +00:00
add start script
This commit is contained in:
@@ -8,7 +8,9 @@ export class RequestLogMiddleware implements NestMiddleware {
|
||||
async use(req: Request, res: Response, next: NextFunction) {
|
||||
const strIP = this.extractIp(req);
|
||||
this.log(strIP + ' ' + req.method + ' ' + decodeURI(req.url));
|
||||
console.log(decodeURI(req.url));
|
||||
if (configService.isDev()) {
|
||||
console.log(decodeURI(req.url));
|
||||
}
|
||||
|
||||
next();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user