Implemented request validation in a filter

This commit is contained in:
Deluan
2016-02-24 20:21:51 -05:00
parent 93f115d8e4
commit ee04b72db1
6 changed files with 9 additions and 13 deletions
-1
View File
@@ -10,7 +10,6 @@ type PingController struct{ beego.Controller }
// @router /rest/ping.view [get]
func (this *PingController) Get() {
validate(this)
response := responses.NewEmpty()
xmlBody, _ := xml.Marshal(response)
this.Ctx.Output.Body([]byte(xml.Header + string(xmlBody)))