refactor(log): remove legacy log deletion endpoint and associated types
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user