Example #1
0
func (t *TestRequest) Handle(funcs ...func(*wcg.Response, *wcg.Request)) *TestResponse {
	router := wcg.NewRouter()
	for _, fun := range funcs {
		router.All("/*", fun)
	}
	return t.RouteTo(router)
}
Example #2
0
func NewServer() wcg.Server {
	s := new(GAEServer)
	s.routes = wcg.NewRouter()
	return s
}