We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2f40f5a commit 0b3633dCopy full SHA for 0b3633d
server/src/services/api.service.ts
@@ -65,9 +65,10 @@ export class ApiService {
65
}
66
67
return async (request: Request, res: Response, next: NextFunction) => {
68
+ const method = request.method.toLowerCase();
69
if (
70
request.url.startsWith('/api') ||
- request.method.toLowerCase() !== 'get' ||
71
+ (method !== 'get' && method !== 'head') ||
72
excludePaths.some((item) => request.url.startsWith(item))
73
) {
74
return next();
0 commit comments