First endpoint: Ping

This commit is contained in:
Deluan
2016-02-24 00:07:57 -05:00
parent 5d6fd4ee6b
commit b9e9d38a9a
5 changed files with 60 additions and 15 deletions
+15
View File
@@ -0,0 +1,15 @@
package controllers
import "github.com/astaxie/beego"
type PingController struct {
beego.Controller
}
// @router /rest/ping.view [get]
func (this *PingController) Get() {
this.Ctx.WriteString("<subsonic-response xmlns=\"http://subsonic.org/restapi\" status=\"ok\" version=\"1.0.0\"></subsonic-response>")
}