Files
whatshooked/cmd/server/routes_health.go
2025-12-29 05:42:57 +02:00

12 lines
237 B
Go

package main
import (
"encoding/json"
"net/http"
)
// handleHealth handles health check requests
func (s *Server) handleHealth(w http.ResponseWriter, r *http.Request) {
json.NewEncoder(w).Encode(map[string]string{"status": "ok"})
}