Moved Rest controllers to 'api' package. Also removed annotation routes
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user