From 0ad196a0130164e6a18da7ee20156de0d508f8a3 Mon Sep 17 00:00:00 2001 From: Franck Cuny Date: Mon, 22 Apr 2013 20:30:25 -0700 Subject: Change the interface to create routes. Previously, to create a route, a user would call the AddRoute function, and pass three arguments (the path, the HTTP method and the function). This interface is way too limited if we need/want to expand what a route is in the future. Instead, we keep calling the AddRoute function to create a route, but this time the user pass a Route structure. The AddRoute will then apply a few transformations and connect the route to the router. --- mooh.go | 1 + 1 file changed, 1 insertion(+) (limited to 'mooh.go') diff --git a/mooh.go b/mooh.go index a8858a6..2bcca75 100644 --- a/mooh.go +++ b/mooh.go @@ -10,6 +10,7 @@ func (self *Dispatcher) ServeHTTP(resp http.ResponseWriter, req *http.Request) { match, err := self.Match(req) if err != nil { + fmt.Println(err) fmt.Printf("oups") return } -- cgit 1.4.1