feat: add health check handler

This commit is contained in:
Oleg Lobanov 2021-03-21 12:30:48 +01:00
parent d2e6d23741
commit a721dc1f31
No known key found for this signature in database
GPG key ID: 7CC64E41212621B0
4 changed files with 13 additions and 2 deletions

View file

@ -36,6 +36,7 @@ func NewHandler(
return handle(fn, prefix, store, server)
}
r.HandleFunc("/health", healthHandler)
r.PathPrefix("/static").Handler(static)
r.NotFoundHandler = index