Skip to content

Commit

Permalink
MSX: Launch added (YouROK#415)
Browse files Browse the repository at this point in the history
  • Loading branch information
damiva authored Jun 7, 2024
1 parent 9388b72 commit 47a2982
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion server/web/msx/msx.go
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,15 @@ func SetupRoute(r gin.IRouter) {
rsp(c, r, e)
})
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) {
if e := c.BindJSON(&param); e != nil {
Expand Down

0 comments on commit 47a2982

Please sign in to comment.