Initial commit
This commit is contained in:
@@ -0,0 +1,26 @@
|
||||
package router
|
||||
|
||||
import (
|
||||
"stat/api/fileApi"
|
||||
"stat/api/mediaapi"
|
||||
|
||||
"github.com/gin-gonic/gin"
|
||||
)
|
||||
|
||||
func fileRouter(router *gin.RouterGroup) {
|
||||
group := router.Group("/file")
|
||||
{
|
||||
group.POST("/upload", fileApi.FileUpload)
|
||||
}
|
||||
groupmedia := router.Group("/media")
|
||||
{
|
||||
groupmedia.POST("/delete", mediaapi.VideoDelete)
|
||||
groupmedia.POST("/update", mediaapi.VideoUpdate)
|
||||
groupmedia.POST("/search", mediaapi.VideoSearch)
|
||||
groupmedia.POST("/videoOk", mediaapi.VideoOK)
|
||||
groupmedia.POST("/videoBody", mediaapi.VideoBody)
|
||||
|
||||
groupmedia.GET("/m3u8/*key", mediaapi.GetM3U8) // m3u8
|
||||
groupmedia.GET("/enkey", mediaapi.Enkey) // enkey
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user