Update msx.go - bug fixed (#406)

This commit is contained in:
damiva
2024-05-23 21:46:40 +03:00
committed by GitHub
parent aef05cd9b7
commit 8c5f80fecb

View File

@@ -36,7 +36,7 @@ func SetupRoute(r gin.IRouter) {
authorized.GET("/msx/start.json", func(c *gin.Context) { authorized.GET("/msx/start.json", func(c *gin.Context) {
c.JSON(200, &start) c.JSON(200, &start)
}) })
authorized.POST("/msx/start,json", func(c *gin.Context) { authorized.POST("/msx/start.json", func(c *gin.Context) {
if e := c.Bind(&start); e != nil { if e := c.Bind(&start); e != nil {
c.AbortWithError(http.StatusBadRequest, e) c.AbortWithError(http.StatusBadRequest, e)
} }