feat(api): landing page with Nubes design (logo+favicon), /static; v0.1.8
This commit is contained in:
@@ -33,6 +33,12 @@ func NewRouter(h *handler.Handler, log *slog.Logger, authTestMode bool, jwtHMACS
|
||||
r.HandleFunc("/health", healthHandler(version)).Methods(http.MethodGet)
|
||||
r.HandleFunc("/healthz", healthHandler(version)).Methods(http.MethodGet)
|
||||
|
||||
// Лендинг "/" — инструкция (дизайн Nubes, как у shared-sqs) + статика.
|
||||
r.HandleFunc("/", func(w http.ResponseWriter, req *http.Request) {
|
||||
ServeLanding(w, req, version)
|
||||
}).Methods(http.MethodGet)
|
||||
r.PathPrefix("/static/").Handler(http.StripPrefix("/static/", StaticHandler()))
|
||||
|
||||
// UI — публичные страницы (без данных).
|
||||
r.HandleFunc("/console", ServeIoTConsole).Methods(http.MethodGet)
|
||||
r.HandleFunc("/iot-admin", ServeIoTAdmin).Methods(http.MethodGet)
|
||||
|
||||
Reference in New Issue
Block a user