@ -1,15 +1,14 @@
package filter
import (
"github.com/astaxie/beego/logs"
"github.com/astaxie/beego/context"
"github.com/astaxie/beego"
)
var FilterAdmin = func(ctx *context.Context) {
url := ctx.Input.URL()
logs.Info(url)
beego.Informational(url)
//beego.Informational(url)
//if url != "/login"{
// ctx.Redirect(302, "/login")
//}
@ -4,8 +4,8 @@ import (
_ "beeblog/routers"
"beeblog/models"
"beeblog/filter"
"github.com/astaxie/beego/orm"
func init() {