Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ApiDocsHandler ¶ added in v1.6.12
func ApiDocsHandler() http.HandlerFunc
ApiDocsHandler serves the Scalar API reference at /api-docs/. No build step or embedded file needed — Scalar loads from CDN and fetches the swagger spec from /swagger/doc.json at runtime.
func HandleStats ¶
func HandleStats(w http.ResponseWriter, r *http.Request)
HandleStats returns system-wide statistics for the admin dashboard. @Summary System statistics @Description Returns a summary of users, clients, and active sessions. @Tags admin-settings @Produce json @Security AdminAuth @Success 200 {object} StatsResponse @Router /admin/api/stats [get]
Types ¶
type StatsResponse ¶
Click to show internal directories.
Click to hide internal directories.