This commit is contained in:
Deluan
2016-02-25 18:52:07 -05:00
parent a1829d432a
commit e760952263
17 changed files with 40 additions and 59 deletions
+1 -3
View File
@@ -1,18 +1,16 @@
package controllers
import (
"github.com/astaxie/beego"
"fmt"
"github.com/astaxie/beego"
)
type MainController struct{ beego.Controller }
func (c *MainController) Get() {
c.Ctx.Redirect(302, "/static/Jamstash/")
}
func (c *MainController) Error404() {
if beego.BConfig.RunMode == beego.DEV || beego.BConfig.Log.AccessLogs {
r := c.Ctx.Request
+1 -2
View File
@@ -1,8 +1,8 @@
package controllers
import (
"github.com/deluan/gosonic/models"
"encoding/json"
"github.com/deluan/gosonic/models"
"github.com/astaxie/beego"
)
@@ -89,4 +89,3 @@ func (o *ObjectController) Delete() {
o.Data["json"] = "delete success!"
o.ServeJSON()
}
+1 -2
View File
@@ -1,8 +1,8 @@
package controllers
import (
"github.com/deluan/gosonic/models"
"encoding/json"
"github.com/deluan/gosonic/models"
"github.com/astaxie/beego"
)
@@ -116,4 +116,3 @@ func (u *UserController) Logout() {
u.Data["json"] = "logout success"
u.ServeJSON()
}