Supporting json output (except for errors)

This commit is contained in:
Deluan
2016-03-02 13:04:55 -05:00
parent 7c82af75f5
commit 9d41f5a39f
11 changed files with 114 additions and 99 deletions
+2 -7
View File
@@ -1,12 +1,7 @@
package api
import (
"github.com/astaxie/beego"
"github.com/deluan/gosonic/api/responses"
)
type PingController struct{ beego.Controller }
type PingController struct{ BaseAPIController }
func (c *PingController) Get() {
c.Ctx.Output.Body(responses.ToXML(responses.NewEmpty()))
c.SendResponse(c.NewEmpty())
}