refactor(log): remove legacy log deletion endpoint and associated types

This commit is contained in:
CaIon
2026-06-22 19:40:04 +08:00
parent f84b7d591f
commit f8cfbfa4df
4 changed files with 6 additions and 14 deletions
+2
View File
@@ -304,6 +304,8 @@ func SetApiRouter(router *gin.Engine) {
}
logRoute := apiRouter.Group("/log")
logRoute.GET("/", middleware.AdminAuth(), controller.GetAllLogs)
// Legacy synchronous direct-delete route used only by the classic frontend.
// TODO: remove once the classic frontend is removed; the default frontend uses /system-task/log-cleanup.
logRoute.DELETE("/", middleware.RootAuth(), controller.DeleteHistoryLogs)
logRoute.GET("/stat", middleware.AdminAuth(), controller.GetLogsStat)
logRoute.GET("/self/stat", middleware.UserAuth(), controller.GetLogsSelfStat)