18 lines
368 B
Go
18 lines
368 B
Go
package router
|
|
|
|
import (
|
|
"91porn-server/web/api/ipblockctrl"
|
|
|
|
"github.com/gin-gonic/gin"
|
|
)
|
|
|
|
func ipblockRouter(router *gin.RouterGroup) {
|
|
group := router.Group("/ipblock")
|
|
{
|
|
group.GET("/list", ipblockctrl.IpBlockList)
|
|
group.POST("/add", ipblockctrl.IPBlockAdd)
|
|
group.DELETE("/del", ipblockctrl.IPBlockDel)
|
|
group.POST("/edit", ipblockctrl.IPBlockEdit)
|
|
}
|
|
}
|