Refactored responses

This commit is contained in:
Deluan
2016-03-02 11:11:46 -05:00
parent 77e3aa7620
commit 01c68d6802
9 changed files with 64 additions and 69 deletions
+4 -2
View File
@@ -8,6 +8,8 @@ import (
type GetLicenseController struct{ beego.Controller }
func (c *GetLicenseController) Get() {
response := responses.NewXML(&responses.License{Valid: true})
c.Ctx.Output.Body(response)
response := responses.NewEmpty()
response.License = responses.License{Valid: true}
c.Ctx.Output.Body(responses.ToXML(response))
}