diff options
author | Franck Cuny <franck@lumberjaph.net> | 2013-05-06 20:42:15 -0700 |
---|---|---|
committer | Franck Cuny <franck@lumberjaph.net> | 2013-05-06 20:46:03 -0700 |
commit | db7199e830cd8911b1bbbf416c2cf7f70decffbb (patch) | |
tree | e7dcb23545ff8d0c2293ca1d376e26a02c4a6f8a /route.go | |
parent | Update the GetRouteList test. (diff) | |
download | path-router-db7199e830cd8911b1bbbf416c2cf7f70decffbb.tar.gz |
Remove code not related to the router.
`foom` is now the web framework, so the code from mooh.go has been moved to that repository. The response and request are handled by the new `web-request` project, and so the code has been moved to this repository.
Diffstat (limited to 'route.go')
-rw-r--r-- | route.go | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/route.go b/route.go index 925bfb5..98e61a6 100644 --- a/route.go +++ b/route.go @@ -3,9 +3,10 @@ package mooh import ( "regexp" "strings" + "github.com/franckcuny/web-request" ) -type fn func(*Request) (Response, error) +type fn func(*request.Request) (request.Response, error) type fns map[string]fn type Route struct { @@ -107,7 +108,7 @@ L: } } -func (self *Route) Execute(request *Request) (Response, error) { +func (self *Route) Execute(request *request.Request) (request.Response, error) { return self.Code(request) } |