From ddda4050daef8b3d1ce4f0a8cbc5dbac24213179 Mon Sep 17 00:00:00 2001 From: taoshihan1991 <630892807@qq.com> Date: Thu, 29 Oct 2020 13:36:36 +0800 Subject: [PATCH] =?UTF-8?q?=E7=A6=81=E6=AD=A2=E5=88=A0=E9=99=A4IP=E9=BB=91?= =?UTF-8?q?=E5=90=8D=E5=8D=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- router/api.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/router/api.go b/router/api.go index 4cd838e..d85d13a 100644 --- a/router/api.go +++ b/router/api.go @@ -73,7 +73,7 @@ func InitApiRouter(engine *gin.Engine) { engine.POST("/notice_save", middleware.JwtApiMiddleware, middleware.RbacAuth, controller.PostNoticeSave) engine.GET("/notices", middleware.JwtApiMiddleware, controller.GetNotices) engine.POST("/ipblack", middleware.JwtApiMiddleware, controller.PostIpblack) - engine.DELETE("/ipblack", middleware.JwtApiMiddleware, controller.DelIpblack) + engine.DELETE("/ipblack", middleware.JwtApiMiddleware, middleware.RbacAuth, controller.DelIpblack) engine.GET("/ipblacks_all", middleware.JwtApiMiddleware, controller.GetIpblacks) engine.GET("/configs", middleware.JwtApiMiddleware, middleware.RbacAuth, controller.GetConfigs) engine.POST("/config", middleware.JwtApiMiddleware, middleware.RbacAuth, controller.PostConfig)