@@ -36,7 +36,6 @@ func (s *Server) Handler() http.Handler {
|
||||
mux.HandleFunc("GET /api/analysis", s.handleAnalysis)
|
||||
mux.HandleFunc("GET /api/runtime-settings", s.handleGetRuntimeSettings)
|
||||
mux.HandleFunc("PUT /api/runtime-settings", s.handleSetRuntimeSettings)
|
||||
mux.HandleFunc("GET /api/categories", s.handleCategories)
|
||||
mux.HandleFunc("GET /api/sources", s.handleSources)
|
||||
mux.HandleFunc("GET /api/research/status", s.handleResearchStatus)
|
||||
mux.HandleFunc("POST /api/research/test", s.handleResearchTest)
|
||||
@@ -93,10 +92,6 @@ func (s *Server) handleSetRuntimeSettings(w http.ResponseWriter, r *http.Request
|
||||
writeJSON(w, http.StatusOK, s.Engine.RuntimeSettingsView())
|
||||
}
|
||||
|
||||
func (s *Server) handleCategories(w http.ResponseWriter, r *http.Request) {
|
||||
writeJSON(w, http.StatusOK, map[string]any{"categories": s.Engine.Categories()})
|
||||
}
|
||||
|
||||
func (s *Server) handleSources(w http.ResponseWriter, r *http.Request) {
|
||||
writeJSON(w, http.StatusOK, map[string]any{"sources": s.Engine.Sources()})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user