Closed mbertschler closed 5 years ago
This code panics: panic: catch-all routes are only allowed at the end of the path in path '/api/*rest/two'
panic: catch-all routes are only allowed at the end of the path in path '/api/*rest/two'
router := httprouter.New() router.GET("/api/*rest/two", handler) router.GET("/api/*rest", handler)
But this one doesn't.
router := httprouter.New() router.GET("/api/*rest", handler) router.GET("/api/*rest/two", handler)
As far as I understand it the router should behave the same in the two cases, or am I missing something?
In the second case one of the two routes is unreachable. However, this does not seem to be detected during registration, which is a bug.
@julienschmidt Hey, any progress on this?
This code panics:
panic: catch-all routes are only allowed at the end of the path in path '/api/*rest/two'
But this one doesn't.
As far as I understand it the router should behave the same in the two cases, or am I missing something?