Closed egonzo closed 10 years ago
The reason is that you are using two different parameter names for the same path segment.
Using either
router.GET("/api/v1/:user_id/buoys/:id/show/", Hello)
router.GET("/api/v1/:user_id/buoys/:id/search/", Hello)
or
router.GET("/api/v1/:user_id/buoys/:name/show/", Hello)
router.GET("/api/v1/:user_id/buoys/:name/search/", Hello)
should work as expected.
I'll try to improve the error messages soon.
When I use these 2 distinct routes, I get a panic. Seems to me like this is a bug? Am I missing something?
Sample program below: