navidrome/controllers/get_license.go

18 lines
347 B
Go
Raw Normal View History

package controllers
import (
"github.com/astaxie/beego"
"github.com/deluan/gosonic/controllers/responses"
)
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)
}