|
|
|
@ -79,7 +79,7 @@ func InitApiRouter(engine *gin.Engine) {
|
|
|
|
|
engine.DELETE("/notice", middleware.JwtApiMiddleware, middleware.RbacAuth, controller.DelNotice)
|
|
|
|
|
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.POST("/ipblack", middleware.JwtApiMiddleware, middleware.Ipblack, controller.PostIpblack)
|
|
|
|
|
engine.DELETE("/ipblack", middleware.JwtApiMiddleware, middleware.RbacAuth, controller.DelIpblack)
|
|
|
|
|
engine.GET("/ipblacks_all", middleware.JwtApiMiddleware, controller.GetIpblacks)
|
|
|
|
|
engine.GET("/ipblacks", middleware.JwtApiMiddleware, controller.GetIpblacksByKefuId)
|
|
|
|
|