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
@@ -10,6 +10,7 @@ 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)))