Backend: API handlers, WebSocket manager, K8s client, CRDT, auth
This commit is contained in:
14
server/internal/api/handlers/namespaces.go
Normal file
14
server/internal/api/handlers/namespaces.go
Normal file
@@ -0,0 +1,14 @@
|
||||
package handlers
|
||||
|
||||
import (
|
||||
"encoding/json"
|
||||
"net/http"
|
||||
)
|
||||
|
||||
func NamespacesHandler(w http.ResponseWriter, r *http.Request) {
|
||||
w.Header().Set("Content-Type", "application/json")
|
||||
|
||||
namespaces := []string{"default", "kube-system", "kube-public"}
|
||||
|
||||
json.NewEncoder(w).Encode(namespaces)
|
||||
}
|
||||
Reference in New Issue
Block a user