Remove api logging for health check
This commit is contained in:
@@ -2,7 +2,7 @@ import { getUserSession } from '#imports';
|
|||||||
|
|
||||||
export default defineEventHandler(async (event) => {
|
export default defineEventHandler(async (event) => {
|
||||||
const { method, path } = event;
|
const { method, path } = event;
|
||||||
if (path.startsWith('/api/metrics')) {
|
if (path.startsWith('/api/metrics') || path.startsWith('/api/health')) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
const { user } = await getUserSession(event);
|
const { user } = await getUserSession(event);
|
||||||
|
|||||||
Reference in New Issue
Block a user