Skip to content

Commit 9a36187

Browse files
committed
Add /api/healthz endpoint
1 parent b0c4d70 commit 9a36187

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

internal/glance/glance.go

+3
Original file line numberDiff line numberDiff line change
@@ -275,6 +275,9 @@ func (a *Application) Serve() error {
275275

276276
mux.HandleFunc("GET /api/pages/{page}/content/{$}", a.HandlePageContentRequest)
277277
mux.HandleFunc("/api/widgets/{widget}/{path...}", a.HandleWidgetRequest)
278+
mux.HandleFunc("GET /api/healthz", func(w http.ResponseWriter, _ *http.Request) {
279+
w.WriteHeader(http.StatusOK)
280+
})
278281

279282
mux.Handle(
280283
fmt.Sprintf("GET /static/%s/{path...}", a.Config.Server.AssetsHash),

0 commit comments

Comments
 (0)