This commit is contained in:
@@ -30,6 +30,9 @@ func New(logger *slog.Logger, database db.Database, buildTime string, sha1ver st
|
||||
|
||||
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("/api/event/vm/create", h.VmCreateEvent)
|
||||
// mux.HandleFunc("/api/event/vm/modify", h.VmModifyEvent)
|
||||
|
@@ -25,7 +25,7 @@ type Server struct {
|
||||
}
|
||||
|
||||
// New creates a new server with the given logger, address and options.
|
||||
func New(logger *slog.Logger, cron gocron.Scheduler, addr string, opts ...Option) *Server {
|
||||
func New(logger *slog.Logger, cron gocron.Scheduler, cancel context.CancelFunc, addr string, opts ...Option) *Server {
|
||||
|
||||
// Set some options for TLS
|
||||
tlsConfig := &tls.Config{
|
||||
|
Reference in New Issue
Block a user