From 41e322c53d7b4b796eb377d0df9c29ecd10ba431 Mon Sep 17 00:00:00 2001 From: Chia Date: Thu, 6 Aug 2026 09:29:41 +1200 Subject: feat: complete commercial control plane, billing, auth, and model catalog - add PostgreSQL control-plane persistence with Redis-degraded hot reload - implement prepaid balance, usage ledger, Stripe top-up and reconciliation - add registration, email verification, password reset, invitations and RBAC - support TOTP, Passkey MFA, device sessions, quotas and rate limits - add tenant billing profiles, audit logs and operational readiness checks - build authenticated admin console, Quickstart, Playground and usage analytics - add public model catalog with pricing, filtering and cost estimation - support OpenAI Responses providers and provider health failover - validate real upstream usage reporting and balance settlement --- internal/adminui/ui.go | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'internal/adminui/ui.go') diff --git a/internal/adminui/ui.go b/internal/adminui/ui.go index 7f58030..49899ea 100644 --- a/internal/adminui/ui.go +++ b/internal/adminui/ui.go @@ -14,5 +14,14 @@ func Handler() http.Handler { if err != nil { panic(err) } - return http.FileServer(http.FS(content)) + files := http.FileServer(http.FS(content)) + mux := http.NewServeMux() + mux.HandleFunc("GET /models", func(w http.ResponseWriter, r *http.Request) { + http.ServeFileFS(w, r, content, "models.html") + }) + mux.HandleFunc("GET /models/", func(w http.ResponseWriter, r *http.Request) { + http.Redirect(w, r, "../models", http.StatusPermanentRedirect) + }) + mux.Handle("/", files) + return mux } -- cgit v1.2.3