quintodrome/api/get_license.go

14 lines
283 B
Go
Raw Normal View History

package api
import (
"github.com/astaxie/beego"
"github.com/deluan/gosonic/api/responses"
)
type GetLicenseController struct{ beego.Controller }
2016-02-25 14:47:25 -09:00
func (c *GetLicenseController) Get() {
2016-02-24 08:00:55 -09:00
response := responses.NewXML(&responses.License{Valid: true})
2016-02-25 14:47:25 -09:00
c.Ctx.Output.Body(response)
}