mirror of
https://github.com/Ernous/TorrServerJellyfin.git
synced 2025-12-19 21:46:11 +05:00
MSX: Launch added (#415)
This commit is contained in:
@@ -56,7 +56,15 @@ func SetupRoute(r gin.IRouter) {
|
|||||||
rsp(c, r, e)
|
rsp(c, r, e)
|
||||||
})
|
})
|
||||||
authorized.GET("/msx/start.json", func(c *gin.Context) {
|
authorized.GET("/msx/start.json", func(c *gin.Context) {
|
||||||
c.JSON(200, map[string]string{"name": "TorrServer", "version": version.Version, "parameter": param})
|
c.JSON(200, map[string]any{
|
||||||
|
"name": "TorrServer",
|
||||||
|
"version": version.Version,
|
||||||
|
"parameter": param,
|
||||||
|
"launcher": map[string]any{
|
||||||
|
"type": "start",
|
||||||
|
"image": utils.GetScheme(c) + "://" + c.Request.Host + "/logo.png",
|
||||||
|
},
|
||||||
|
})
|
||||||
})
|
})
|
||||||
authorized.POST("/msx/start.json", func(c *gin.Context) {
|
authorized.POST("/msx/start.json", func(c *gin.Context) {
|
||||||
if e := c.BindJSON(¶m); e != nil {
|
if e := c.BindJSON(¶m); e != nil {
|
||||||
|
|||||||
Reference in New Issue
Block a user