|
|
|
@ -69,7 +69,7 @@ func InitApiRouter(engine *gin.Engine) {
|
|
|
|
|
engine.POST("/about", middleware.JwtApiMiddleware, middleware.RbacAuth, controller.PostAbout)
|
|
|
|
|
engine.GET("/notice", middleware.SetLanguage, controller.GetNotice)
|
|
|
|
|
engine.POST("/notice", middleware.JwtApiMiddleware, middleware.RbacAuth, controller.PostNotice)
|
|
|
|
|
engine.DELETE("/notice", middleware.JwtApiMiddleware, controller.DelNotice)
|
|
|
|
|
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)
|
|
|
|
|