feat: restore cron page, email in navbar, metrics pipeline v1.3.19

This commit is contained in:
Naeel
2026-05-02 13:58:45 +04:00
committed by “Naeel”
parent 1610011f7f
commit 2bc04d5bfd
11 changed files with 833 additions and 20 deletions
+9
View File
@@ -127,6 +127,15 @@ func (s *Server) RegisterRoutes(mux *http.ServeMux) {
// Auth: не требует токена — сам проверяет и возвращает namespace
mux.HandleFunc("/console/api/auth", s.handleAuth)
// Cron: публичные маршруты для метрик
cronHandler := ui.CronHandler()
mux.Handle("/cron", cronHandler)
mux.Handle("/cron/", cronHandler)
mux.Handle("/console/cron", cronHandler)
mux.Handle("/console/cron/", cronHandler)
mux.HandleFunc("/cron/api/metrics", s.handleCronMetrics)
mux.HandleFunc("/console/cron/api/metrics", s.handleCronMetrics)
// Приватные: требуют X-Auth-Token / X-Test-Sub
auth := s.authMiddleware