func (c *BaseController) Before() {
	if c.Req.Host != access.AdminHost || !access.IsAllowedFromIP(c.Req.ClientIP()) {
		c.Reply().Forbidden().Text("403 Forbidden")
		c.Abort()
		return
	}
	c.AddViewArg("IsPackaged", aah.App().IsPackaged())
}
Before method is an interceptor for admin path.
package admin
import (
	"thumbai/app/access"
	"aahframe.work"
)
type BaseController struct {
	*aah.Context
}