From a49eaa09300dca8e5a7f6bdba3db3904bf829ecb Mon Sep 17 00:00:00 2001 From: Pierre-Emmanuel Jacquier Date: Sat, 18 May 2019 16:14:43 +0000 Subject: [PATCH] Add other xtream login endpoint Signed-off-by: Pierre-Emmanuel Jacquier --- pkg/routes/routes.go | 1 + 1 file changed, 1 insertion(+) diff --git a/pkg/routes/routes.go b/pkg/routes/routes.go index 84d2aa4..131fc58 100644 --- a/pkg/routes/routes.go +++ b/pkg/routes/routes.go @@ -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)