You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
By design of the router, one can not register multiple handlers for the same path segment. By /*filepath you tell the router to handle ANY request with http.Dir("./web_root"). Therefore you can not also register /orders/:id and /orders.
You can find a hack some people use in #33, but I would simply recommend to use a distinct sub-path for serving files like /static/*filepath or /files/*filepath.
Hi, I m serving a single page application from /
--> works fine
--> panic: conflict with wildcard route
goroutine 16 [running]:
runtime.panic(0x293240, 0xc208000980)
/usr/local/go/src/pkg/runtime/panic.c:279 +0xf5
github.com/julienschmidt/httprouter.(*node).addRoute(0xc2080042a0, 0x392f70, 0xb, 0x433330)
/Users/sallas/go/src/github.com/julienschmidt/httprouter/tree.go:141 +0x594
What could I do to make it work in /?
The text was updated successfully, but these errors were encountered: