mirror of
https://github.com/navidrome/navidrome.git
synced 2024-09-10 11:32:48 +02:00
16 lines
323 B
Go
16 lines
323 B
Go
package api
|
|
|
|
import (
|
|
"encoding/xml"
|
|
"github.com/astaxie/beego"
|
|
"github.com/deluan/gosonic/api/responses"
|
|
)
|
|
|
|
type PingController struct{ beego.Controller }
|
|
|
|
func (c *PingController) Get() {
|
|
response := responses.NewEmpty()
|
|
xmlBody, _ := xml.Marshal(response)
|
|
c.Ctx.Output.Body([]byte(xml.Header + string(xmlBody)))
|
|
}
|