go fmt
This commit is contained in:
+1
-3
@@ -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,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
@@ -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()
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user