mirror of
https://github.com/navidrome/navidrome.git
synced 2025-04-13 10:47:19 +03:00
19 lines
332 B
Go
19 lines
332 B
Go
package api
|
|
|
|
import (
|
|
"github.com/astaxie/beego"
|
|
"encoding/xml"
|
|
"github.com/deluan/gosonic/api/responses"
|
|
)
|
|
|
|
type PingController struct{ beego.Controller }
|
|
|
|
func (this *PingController) Get() {
|
|
response := responses.NewEmpty()
|
|
xmlBody, _ := xml.Marshal(response)
|
|
this.Ctx.Output.Body([]byte(xml.Header + string(xmlBody)))
|
|
}
|
|
|
|
|
|
|