aboutsummaryrefslogtreecommitdiff
path: root/backend/internal/api/router.go
diff options
context:
space:
mode:
authorzwlucas <lucas.fariamo08@gmail.com>2026-05-29 20:41:33 +0000
committerzwlucas <lucas.fariamo08@gmail.com>2026-05-29 20:41:33 +0000
commit9218d22954d61296a32c49373ab0f17f0be59cfe (patch)
tree595b94ce7c2b5eed9760f79e7781653d6b554d18 /backend/internal/api/router.go
parentd186a989b6808ff39fcd43a9f0b478aebc4aa346 (diff)
downloadyaum-9218d22954d61296a32c49373ab0f17f0be59cfe.tar.gz
yaum-9218d22954d61296a32c49373ab0f17f0be59cfe.zip
feat: add SSL info tracking and server metrics collection
Signed-off-by: zwlucas <lucas.fariamo08@gmail.com>
Diffstat (limited to 'backend/internal/api/router.go')
-rw-r--r--backend/internal/api/router.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/backend/internal/api/router.go b/backend/internal/api/router.go
index 8188b25..d28da71 100644
--- a/backend/internal/api/router.go
+++ b/backend/internal/api/router.go
@@ -19,6 +19,7 @@ func NewRouter(h *Handler, stream *StreamHandler, auth *AuthHandler) http.Handle
mux.HandleFunc("DELETE /api/services/{id}", h.DeleteService)
mux.HandleFunc("GET /api/services/{id}/history", h.GetHistory)
mux.HandleFunc("GET /api/services/{id}/stats", h.GetStats)
+ mux.HandleFunc("GET /api/services/{id}/ssl", h.GetSSLInfo)
mux.HandleFunc("GET /api/services/{id}/badge.svg", h.BadgeSVG)
mux.HandleFunc("GET /api/active-maintenance", h.GetActiveMaintenance)
@@ -28,6 +29,8 @@ func NewRouter(h *Handler, stream *StreamHandler, auth *AuthHandler) http.Handle
mux.HandleFunc("PUT /api/maintenances/{id}", h.UpdateMaintenance)
mux.HandleFunc("DELETE /api/maintenances/{id}", h.DeleteMaintenance)
+ mux.HandleFunc("GET /api/admin/server-stats", h.ServerStats)
+
mux.Handle("GET /api/stream", stream)
return corsMiddleware(auth.Middleware(mux))