go.bigb.es/curator
Index
Functions
func AuthMiddleware(adminToken string, next http.Handler) http.Handler
Types
type APIHandler struct { // contains filtered or unexported fields }
APIHandler serves the REST API for module management.
func (h *APIHandler) ServeHTTP(w http.ResponseWriter, r *http.Request)
ServeHTTP routes API requests.
type Handler struct { // contains filtered or unexported fields }
Handler serves the admin UI.
func (h *Handler) ServeHTTP(w http.ResponseWriter, r *http.Request)
ServeHTTP routes admin requests.
AuthMiddleware protects admin routes with the admin token. Supports Bearer token in Authorization header and cookie-based sessions.