more logging
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2025-03-24 10:38:24 +11:00
parent 6c432f7cb1
commit fe889a7a2c
4 changed files with 43 additions and 5 deletions

View File

@@ -26,13 +26,14 @@ func New(logger *slog.Logger, database db.Database, buildTime string, sha1ver st
mux := http.NewServeMux()
mux.Handle("/assets/", middleware.CacheMiddleware(http.FileServer(http.FS(dist.AssetsDir))))
mux.HandleFunc("/", h.Home)
mux.HandleFunc("/about", h.Home)
mux.HandleFunc("/api/now/import/x_dusa2_itom_inc_imp", h.NewSnow)
mux.HandleFunc("/api/now/table/incident/", h.GetIncident)
mux.HandleFunc("/api/print", h.RenderIncomingTable)
// TODO - fallback route that will just echo incoming payload
mux.HandleFunc("/", h.Fallback)
// mux.HandleFunc("/api/event/vm/create", h.VmCreateEvent)
// mux.HandleFunc("/api/event/vm/modify", h.VmModifyEvent)