From d341ff9918e29fe6df66a4da5f6011e106447965 Mon Sep 17 00:00:00 2001 From: Yeuoly Date: Mon, 25 Nov 2024 17:11:08 +0800 Subject: [PATCH] fix: incorrect route of delete all installing tasks --- internal/server/http_server.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/server/http_server.go b/internal/server/http_server.go index 2be06bd..7580b9f 100644 --- a/internal/server/http_server.go +++ b/internal/server/http_server.go @@ -118,8 +118,8 @@ func (app *App) pluginManagementGroup(group *gin.RouterGroup, config *app.Config group.POST("/install/identifiers", controllers.InstallPluginFromIdentifiers(config)) group.POST("/install/upgrade", controllers.UpgradePlugin(config)) group.GET("/install/tasks/:id", controllers.FetchPluginInstallationTask) + group.POST("/install/tasks/delete_all", controllers.DeleteAllPluginInstallationTasks) group.POST("/install/tasks/:id/delete", controllers.DeletePluginInstallationTask) - group.POST("/install/tasks/:id/delete_all", controllers.DeleteAllPluginInstallationTasks) group.POST("/install/tasks/:id/delete/*identifier", controllers.DeletePluginInstallationItemFromTask) group.GET("/install/tasks", controllers.FetchPluginInstallationTasks) group.GET("/fetch/manifest", controllers.FetchPluginManifest)