navidrome/api/ping.go

12 lines
237 B
Go
Raw Normal View History

package api
2016-02-24 00:07:57 -05:00
2016-02-24 00:29:27 -05:00
import (
2016-02-25 18:52:07 -05:00
"github.com/astaxie/beego"
"github.com/deluan/gosonic/api/responses"
2016-02-24 00:29:27 -05:00
)
2016-02-24 00:07:57 -05:00
2016-02-24 00:29:27 -05:00
type PingController struct{ beego.Controller }
2016-02-25 18:47:25 -05:00
func (c *PingController) Get() {
2016-03-02 11:11:46 -05:00
c.Ctx.Output.Body(responses.ToXML(responses.NewEmpty()))
2016-02-24 00:07:57 -05:00
}