Backend: API handlers, WebSocket manager, K8s client, CRDT, auth
This commit is contained in:
15
server/internal/api/handlers/health.go
Normal file
15
server/internal/api/handlers/health.go
Normal file
@@ -0,0 +1,15 @@
|
||||
package handlers
|
||||
|
||||
import (
|
||||
"encoding/json"
|
||||
"net/http"
|
||||
)
|
||||
|
||||
type HealthResponse struct {
|
||||
Status string `json:"status"`
|
||||
}
|
||||
|
||||
func HealthHandler(w http.ResponseWriter, r *http.Request) {
|
||||
w.Header().Set("Content-Type", "application/json")
|
||||
json.NewEncoder(w).Encode(HealthResponse{Status: "ok"})
|
||||
}
|
||||
Reference in New Issue
Block a user