From 3c6dc2c87e4e83eaa44f98d51c08f638bdc018fd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BB=93=E9=BC=A0?= <71394853+hamster1963@users.noreply.github.com> Date: Sun, 22 Dec 2024 23:18:08 +0800 Subject: [PATCH] fix: batch-block online-user request method (#903) --- cmd/dashboard/controller/controller.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/dashboard/controller/controller.go b/cmd/dashboard/controller/controller.go index 0e318dd..ab1e62e 100644 --- a/cmd/dashboard/controller/controller.go +++ b/cmd/dashboard/controller/controller.go @@ -133,7 +133,7 @@ func routers(r *gin.Engine, frontendDist fs.FS) { auth.POST("/batch-delete/waf", adminHandler(batchDeleteBlockedAddress)) auth.GET("/online-user", pCommonHandler(listOnlineUser)) - auth.GET("/online-user/batch-block", adminHandler(batchBlockOnlineUser)) + auth.POST("/online-user/batch-block", adminHandler(batchBlockOnlineUser)) auth.PATCH("/setting", adminHandler(updateConfig))