Executable
+24
@@ -0,0 +1,24 @@
|
||||
package router
|
||||
|
||||
import (
|
||||
"91porn-server/app/api/mediactrl"
|
||||
"github.com/gin-gonic/gin"
|
||||
)
|
||||
|
||||
// mediaRouter 移动端接口
|
||||
func mediaRouter(router *gin.RouterGroup) {
|
||||
group := router.Group("/media")
|
||||
{
|
||||
group.GET("/list", mediactrl.List)
|
||||
group.GET("/info", mediactrl.Info)
|
||||
group.GET("/topic", mediactrl.GetTopicList)
|
||||
group.GET("/library", mediactrl.Library)
|
||||
group.POST("/library/search", mediactrl.LibrarySearch)
|
||||
group.GET("/search", mediactrl.Search)
|
||||
// 搜索推荐标签
|
||||
group.GET("/recommend", mediactrl.Recommend)
|
||||
group.GET("/ranking", mediactrl.Ranking)
|
||||
group.GET("/hot", mediactrl.Hot)
|
||||
group.GET("/my_buy", mediactrl.MyBuy)
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user