package controller import ( "context" "net/http" "github.com/AFASystems/presence/internal/pkg/api/response" "github.com/AFASystems/presence/internal/pkg/common/appcontext" ) func HealthController(appState *appcontext.AppState, context context.Context) http.HandlerFunc { return func(w http.ResponseWriter, r *http.Request) { health := appState.GetHealth() response.JSON(w, http.StatusOK, health) } }