navidrome/api/get_license.go

17 lines
292 B
Go
Raw Normal View History

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