about summary refs log tree commit diff
path: root/route.go
diff options
context:
space:
mode:
authorFranck Cuny <franck@lumberjaph.net>2013-05-06 20:42:15 -0700
committerFranck Cuny <franck@lumberjaph.net>2013-05-06 20:46:03 -0700
commitdb7199e830cd8911b1bbbf416c2cf7f70decffbb (patch)
treee7dcb23545ff8d0c2293ca1d376e26a02c4a6f8a /route.go
parentUpdate the GetRouteList test. (diff)
downloadpath-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.go5
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)
 }