Moved Rest controllers to 'api' package. Also removed annotation routes

This commit is contained in:
Deluan
2016-02-25 16:31:06 -05:00
parent 543e195744
commit 39757f884a
14 changed files with 20 additions and 143 deletions
+16
View File
@@ -0,0 +1,16 @@
package api
import (
"github.com/astaxie/beego"
"github.com/deluan/gosonic/api/responses"
)
type GetLicenseController struct{ beego.Controller }
func (this *GetLicenseController) Get() {
response := responses.NewXML(&responses.License{Valid: true})
this.Ctx.Output.Body(response)
}