mirror of
https://github.com/GlueOps/autoglue.git
synced 2026-02-13 12:50:05 +01:00
initial rebuild
This commit is contained in:
19
internal/handlers/health/health.go
Normal file
19
internal/handlers/health/health.go
Normal file
@@ -0,0 +1,19 @@
|
||||
package health
|
||||
|
||||
import (
|
||||
"net/http"
|
||||
|
||||
"github.com/glueops/autoglue/internal/response"
|
||||
)
|
||||
|
||||
// Check HealthCheck godoc
|
||||
// @Summary Basic health check
|
||||
// @Description Returns a 200 if the service is up
|
||||
// @Tags health
|
||||
// @Accept json
|
||||
// @Produce plain
|
||||
// @Success 200 {string} string "ok"
|
||||
// @Router /api/healthz [get]
|
||||
func Check(w http.ResponseWriter, r *http.Request) {
|
||||
_ = response.JSON(w, http.StatusOK, map[string]string{"status": "ok"})
|
||||
}
|
||||
Reference in New Issue
Block a user