Add other xtream login endpoint

Signed-off-by: Pierre-Emmanuel Jacquier <pierre-emmanuel.jacquier@epitech.eu>
This commit is contained in:
Pierre-Emmanuel Jacquier
2019-05-18 16:14:43 +00:00
parent 87ad554d4b
commit a49eaa0930

View File

@@ -53,6 +53,7 @@ func Routes(proxyConfig *config.ProxyConfig, r *gin.RouterGroup, newM3U []byte)
r.POST("/iptv.m3u", p.authenticate, p.getM3U)
//Xtream, iptv Smarter android app compatibility
r.GET("/player_api.php", p.appAuthenticate, p.xtreamPlayerAPI)
r.POST("/player_api.php", p.appAuthenticate, p.xtreamPlayerAPI)
r.GET("/xmltv.php", p.authenticate, p.xtreamXMLTV)
r.GET(fmt.Sprintf("/%s/%s/:id", proxyConfig.User, proxyConfig.Password), p.xtreamStream)