feat: add admin log deletion

This commit is contained in:
zenfun
2025-12-21 00:53:52 +08:00
parent 88289015fc
commit 369c204c16
3 changed files with 145 additions and 0 deletions

View File

@@ -212,6 +212,7 @@ func main() {
adminGroup.GET("/models", handler.ListModels)
adminGroup.PUT("/models/:id", handler.UpdateModel)
adminGroup.GET("/logs", handler.ListLogs)
adminGroup.DELETE("/logs", handler.DeleteLogs)
adminGroup.GET("/logs/stats", handler.LogStats)
adminGroup.GET("/stats", adminHandler.GetAdminStats)
adminGroup.POST("/bindings", handler.CreateBinding)