Handling request validation/authentication

This commit is contained in:
Deluan
2016-02-24 18:06:49 -05:00
parent 9a55fa1c64
commit 975327a6cb
14 changed files with 220 additions and 14 deletions
+1
View File
@@ -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)
}