package filter

import (
	"log"
	"regexp"

	"github.com/go-xweb/xweb"
)

func init() {
	log.Println("过滤器")
	matchUrl := make([]*regexp.Regexp, 0)
	filter, _ := regexp.Compile("/front")
	matchUrl = append(matchUrl, filter)
	xweb.AddFilter(&sessfilter{App: xweb.RootApp(), SessionName: "user",
		MatchUrl: matchUrl})

}
