Added a MainController

This commit is contained in:
Deluan
2016-02-25 15:44:53 -05:00
parent a4e7d63377
commit 1e842ccfdf
4 changed files with 37 additions and 1 deletions
+2
View File
@@ -9,6 +9,7 @@ import (
func init() {
beego.Include(
&controllers.MainController{},
&controllers.PingController{},
&controllers.GetLicenseController{},
&controllers.GetMusicFoldersController{},
@@ -19,4 +20,5 @@ func init() {
}
beego.InsertFilter("/rest/*", beego.BeforeRouter, ValidateRequest)
beego.ErrorController(&controllers.MainController{})
}