2016-02-25 22:31:06 +01:00
|
|
|
package api
|
2016-02-24 17:29:26 +01:00
|
|
|
|
|
|
|
import (
|
|
|
|
"github.com/astaxie/beego"
|
2016-02-25 22:31:06 +01:00
|
|
|
"github.com/deluan/gosonic/api/responses"
|
2016-02-24 17:29:26 +01:00
|
|
|
)
|
|
|
|
|
|
|
|
type GetLicenseController struct{ beego.Controller }
|
|
|
|
|
|
|
|
func (this *GetLicenseController) Get() {
|
2016-02-24 18:00:55 +01:00
|
|
|
response := responses.NewXML(&responses.License{Valid: true})
|
|
|
|
this.Ctx.Output.Body(response)
|
2016-02-24 17:29:26 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|