More cleanup

This commit is contained in:
Dominic Ferrando
2026-06-26 16:36:01 -04:00
parent b3e7d9a251
commit aa9ba61a9a
3 changed files with 30 additions and 34 deletions
+8 -3
View File
@@ -100,11 +100,16 @@ export const app = new Elysia()
}
})
.onAfterHandle(({ request, set }) => {
.onAfterResponse(({ request, status, path }) => {
const skip: Record<string, string[]> = {
"/products/sync/": ["GET"]
};
if (env.NODE_ENV === "development" && skip[path]?.includes(request.method)) return;
log.info({
method: request.method,
path: new URL(request.url).pathname,
status: set.status ?? 200
path,
status
}, "request");
})