Refactored responses
This commit is contained in:
+4
-2
@@ -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))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user