1 parent
6c432f7cb1
commit
fe889a7a2c
4 files changed
+43
-5
No files matched your search
@@ -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)
|
||||
|
||||
Reference in new issue
Block a user