feat(system-info): add stale instance cleanup actions (#5953)

This commit is contained in:
Seefs
2026-07-07 21:22:49 +08:00
committed by GitHub
parent fc1259f583
commit a72e5082e9
12 changed files with 411 additions and 82 deletions
+2
View File
@@ -288,6 +288,8 @@ func SetApiRouter(router *gin.Engine) {
systemInfoRoute.Use(middleware.RootAuth())
{
systemInfoRoute.GET("/instances", controller.ListSystemInstances)
systemInfoRoute.DELETE("/stale-instances", controller.DeleteStaleSystemInstances)
systemInfoRoute.DELETE("/instances/:node_name", controller.DeleteStaleSystemInstance)
}
dataRoute := apiRouter.Group("/data")