healthchecks should work regardless domain (#27981)

This commit is contained in:
Carl Bergquist
2020-10-02 07:14:26 +02:00
committed by GitHub
parent 845bc7c444
commit a28a2fba51
2 changed files with 15 additions and 4 deletions

View File

@ -436,9 +436,5 @@ func (hs *HTTPServer) registerRoutes() {
r.Get("/api/snapshots-delete/:deleteKey", reqSnapshotPublicModeOrSignedIn, Wrap(DeleteDashboardSnapshotByDeleteKey))
r.Delete("/api/snapshots/:key", reqEditorRole, Wrap(DeleteDashboardSnapshot))
// Health check
r.Get("/api/health", hs.apiHealthHandler)
r.Get("/healthz", hs.healthzHandler)
r.Get("/*", reqSignedIn, hs.Index)
}