17 lines
356 B
Go
17 lines
356 B
Go
package router
|
|
|
|
import (
|
|
"91porn-server/web/api/officialctrl"
|
|
"github.com/gin-gonic/gin"
|
|
)
|
|
|
|
func officialRouter(router *gin.RouterGroup) {
|
|
group := router.Group("/official")
|
|
{
|
|
group.GET("/list", officialctrl.List)
|
|
group.POST("/update", officialctrl.Update)
|
|
group.POST("/add", officialctrl.Add)
|
|
group.DELETE("/delete", officialctrl.Delete)
|
|
}
|
|
}
|