You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
450 B
24 lines
450 B
6 years ago
|
package filter
|
||
|
|
||
|
import (
|
||
|
"github.com/astaxie/beego/logs"
|
||
|
"github.com/astaxie/beego/context"
|
||
|
)
|
||
|
|
||
|
|
||
|
var FilterAdmin = func(ctx *context.Context) {
|
||
|
url := ctx.Input.URL()
|
||
|
logs.Info("##### filter url : %s", url)
|
||
|
//if url != "/login"{
|
||
|
// ctx.Redirect(302, "/login")
|
||
|
//}
|
||
|
}
|
||
|
|
||
|
var FilterAdmin1 = func(ctx *context.Context) {
|
||
|
url := ctx.Input.URL()
|
||
|
logs.Info("##### filter url : %s", url)
|
||
|
//if url != "/login"{
|
||
|
// ctx.Redirect(302, "/login")
|
||
|
//}
|
||
|
}
|