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
+17
View File
@@ -1 +1,18 @@
package controllers
import (
"github.com/astaxie/beego"
"github.com/deluan/gosonic/controllers/responses"
)
type GetMusicFoldersController struct{ beego.Controller }
// @router /rest/getMusicFolders.view [get]
func (this *GetMusicFoldersController) Get() {
validate(this)
response := responses.NewError(responses.ERROR_GENERIC)
this.Ctx.Output.Body(response)
}