Description

Filter add filter in the Namespace action has before & after FilterFunc usage: Filter("before", func (ctx *context.Context){

    _, ok := ctx.Input.Session("uid").(int)
    if !ok && ctx.Request.RequestURI != "/login" {
       ctx.Redirect(302, "/login")
     }
})

Filter is referenced in 1 repository

github.com/astaxie/beego