Backend: API handlers, WebSocket manager, K8s client, CRDT, auth

This commit is contained in:
Hermes Agent
2026-06-16 08:53:24 -04:00
parent 33c6648b84
commit 27779ba26f
15 changed files with 427 additions and 0 deletions

View File

@@ -0,0 +1,20 @@
package api
import (
"net/http"
"krates/server/internal/api/handlers"
)
func SetupRoutes() http.Handler {
mux := http.NewServeMux()
mux.HandleFunc("/health", handlers.HealthHandler)
mux.HandleFunc("/cluster", handlers.ClusterHandler)
mux.HandleFunc("/resources", handlers.ResourcesHandler)
mux.HandleFunc("/resources/", handlers.ResourcesHandler)
mux.HandleFunc("/resource/", handlers.ResourceHandler)
mux.HandleFunc("/namespaces", handlers.NamespacesHandler)
return mux
}