@@ -398,6 +398,9 @@ func NewHandler(config Config) (http.Handler, error) {
|
||||
mux.HandleFunc("GET /api/v1/monitor/knowledge-bases/{id}/files", func(w http.ResponseWriter, r *http.Request) {
|
||||
monitorFiles(w, r, config.Monitor)
|
||||
})
|
||||
mux.HandleFunc("GET /api/v1/monitor/tasks", func(w http.ResponseWriter, r *http.Request) {
|
||||
listMonitorTasks(w, r, config)
|
||||
})
|
||||
mux.HandleFunc("GET /api/v1/monitor/metrics", func(w http.ResponseWriter, r *http.Request) {
|
||||
monitorMetrics(w, r, config.Monitor)
|
||||
})
|
||||
@@ -557,6 +560,9 @@ func NewHandler(config Config) (http.Handler, error) {
|
||||
})
|
||||
// 需下架条目的移除入口:把「被禁止导入但仍存活在测试库」的知识从测试库移除
|
||||
// (置 disabling + 入队既有 test.remove 工作流)。与开始处理同级:engineer 即可。
|
||||
mux.HandleFunc("POST /api/v1/test-publications/{id}/removal-retry", func(w http.ResponseWriter, r *http.Request) {
|
||||
retryMonitorRemoval(w, r, config)
|
||||
})
|
||||
mux.HandleFunc("POST /api/v1/test-publications/{id}/removal", func(w http.ResponseWriter, r *http.Request) {
|
||||
startTestPublicationRemoval(w, r, config)
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user