Handling request validation/authentication
This commit is contained in:
@@ -9,6 +9,7 @@ type GetLicenseController struct{ beego.Controller }
|
||||
|
||||
// @router /rest/getLicense.view [get]
|
||||
func (this *GetLicenseController) Get() {
|
||||
validate(this)
|
||||
response := responses.NewXML(&responses.License{Valid: true})
|
||||
this.Ctx.Output.Body(response)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user