Supporting json output (except for errors)
This commit is contained in:
+3
-5
@@ -1,15 +1,13 @@
|
||||
package api
|
||||
|
||||
import (
|
||||
"github.com/astaxie/beego"
|
||||
"github.com/deluan/gosonic/api/responses"
|
||||
)
|
||||
|
||||
type GetLicenseController struct{ beego.Controller }
|
||||
type GetLicenseController struct{ BaseAPIController }
|
||||
|
||||
func (c *GetLicenseController) Get() {
|
||||
response := responses.NewEmpty()
|
||||
response := c.NewEmpty()
|
||||
response.License = &responses.License{Valid: true}
|
||||
|
||||
c.Ctx.Output.Body(responses.ToXML(response))
|
||||
c.SendResponse(response)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user