2016-02-24 17:29:26 +01:00
|
|
|
package controllers
|
|
|
|
|
|
|
|
import (
|
|
|
|
"github.com/astaxie/beego"
|
2016-02-24 21:29:19 +01:00
|
|
|
"github.com/deluan/gosonic/controllers/responses"
|
2016-02-24 17:29:26 +01:00
|
|
|
)
|
|
|
|
|
|
|
|
type GetLicenseController struct{ beego.Controller }
|
|
|
|
|
|
|
|
// @router /rest/getLicense.view [get]
|
|
|
|
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
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|