package app import ( "net/http" "longheng.io/server/internal/platform/httpx" ) func adminConsole(w http.ResponseWriter, r *http.Request) { if r.Method != http.MethodGet && r.Method != http.MethodHead { w.Header().Set("Allow", http.MethodGet) httpx.WriteJSON(w, http.StatusMethodNotAllowed, map[string]string{"error": "method not allowed"}) return } w.Header().Set("Content-Type", "text/html; charset=utf-8") _, _ = w.Write([]byte(adminConsoleHTML)) } const adminConsoleHTML = ` LongHeng 龙恒 Admin Console

LongHeng 龙恒 Admin Console

Health
{}
`