This commit is contained in:
1 parent
7e9c2d9663
commit
c1f701fc16
6 files changed
+496
-13
No files matched your search
+15
-13
@@ -98,6 +98,7 @@ func (s *Server) Handler() http.Handler {
|
||||
mux.HandleFunc("GET /api/series", s.handleSeries)
|
||||
mux.HandleFunc("GET /api/context", s.handleContext)
|
||||
mux.HandleFunc("GET /api/forecast", s.handleForecast)
|
||||
mux.HandleFunc("GET /api/playground/forecast", s.handlePlaygroundForecast)
|
||||
mux.HandleFunc("GET /api/staffing", s.handleStaffing)
|
||||
mux.HandleFunc("GET /api/scenario", s.handleScenarioGet)
|
||||
mux.HandleFunc("POST /api/scenario", s.requireControlAuth(s.handleScenarioPost))
|
||||
@@ -112,19 +113,20 @@ func (s *Server) Handler() http.Handler {
|
||||
}
|
||||
|
||||
var methodTable = map[string][]string{
|
||||
"/api/healthz": {"GET"},
|
||||
"/api/readyz": {"GET"},
|
||||
"/api/meta": {"GET"},
|
||||
"/api/sensors": {"GET"},
|
||||
"/api/series": {"GET"},
|
||||
"/api/context": {"GET"},
|
||||
"/api/forecast": {"GET"},
|
||||
"/api/staffing": {"GET"},
|
||||
"/api/scenario": {"GET", "POST"},
|
||||
"/api/train": {"POST"},
|
||||
"/api/prezero/summary": {"GET"},
|
||||
"/api/prezero/priority": {"GET"},
|
||||
"/api/stream": {"GET"},
|
||||
"/api/healthz": {"GET"},
|
||||
"/api/readyz": {"GET"},
|
||||
"/api/meta": {"GET"},
|
||||
"/api/sensors": {"GET"},
|
||||
"/api/series": {"GET"},
|
||||
"/api/context": {"GET"},
|
||||
"/api/forecast": {"GET"},
|
||||
"/api/playground/forecast": {"GET"},
|
||||
"/api/staffing": {"GET"},
|
||||
"/api/scenario": {"GET", "POST"},
|
||||
"/api/train": {"POST"},
|
||||
"/api/prezero/summary": {"GET"},
|
||||
"/api/prezero/priority": {"GET"},
|
||||
"/api/stream": {"GET"},
|
||||
}
|
||||
|
||||
// routeCheck keeps unknown routes and methods in the JSON error envelope;
|
||||
|
||||
Reference in new issue
Block a user