add play link

This commit is contained in:
YouROK
2021-05-25 10:24:43 +03:00
parent 266ce9924d
commit d9b9a7077d
2 changed files with 4 additions and 0 deletions

View File

@@ -30,6 +30,9 @@ func SetupRoute(route *gin.RouterGroup) {
route.GET("/stream", stream)
route.GET("/stream/*fname", stream)
route.HEAD("/play/:hash/:id", play)
route.GET("/play/:hash/:id", play)
route.POST("/viewed", viewed)
route.GET("/playlistall/all.m3u", allPlayList)