mirror of
https://github.com/ncarlier/webhookd.git
synced 2024-09-20 00:45:29 +00:00
do not register middlewares on /healthz path (#28)
chore(api): ignore common middlewares for health check endpoint
This commit is contained in:
parent
f75c9bcaac
commit
78501c4c49
|
@ -50,6 +50,9 @@ func NewRouter(conf *config.Config) *http.ServeMux {
|
|||
handler = mw(handler)
|
||||
}
|
||||
for _, mw := range middlewares {
|
||||
if route.Path == "/healthz" {
|
||||
continue
|
||||
}
|
||||
handler = mw(handler)
|
||||
}
|
||||
router.Handle(route.Path, handler)
|
||||
|
|
Loading…
Reference in New Issue
Block a user