From 2dd53c7f3844b2a3f43d5c132b29edd7fcf9cff1 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 0e318ddb..ab1e62e6 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))