refactor: use better ignore paths in context middleware (#743)

This commit is contained in:
Stavros
2026-04-01 17:07:14 +03:00
committed by GitHub
parent 08e6b84615
commit fc1d4f2082
2 changed files with 31 additions and 7 deletions

View File

@@ -8,10 +8,11 @@ import (
"github.com/steveiliop56/tinyauth/internal/utils/tlog"
)
// See context middleware for explanation of why we have to do this
var (
loggerSkipPathsPrefix = []string{
"GET /api/health",
"HEAD /api/health",
"GET /api/healthz",
"HEAD /api/healthz",
"GET /favicon.ico",
}
)