healthchecks should work regardless domain (#27981)

(cherry picked from commit a28a2fba51)
This commit is contained in:
Carl Bergquist
2020-10-08 12:00:32 +03:00
committed by Sofia Papagiannaki
parent 6ff9d3ffad
commit 1cd4391b9b
2 changed files with 15 additions and 4 deletions
-4
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)
}