I have following route mapping using gorilla/mux:
router.Handle("/v1/data/{param}", handler)
when I call curl http://localhost:8080/v1/data/hello%2Fworld
I get 404
response code. The problem is that in my microservice I would like to interpret everything that goes after /v1/data/
as param
.
Code that's capturing params is following:
uriP := mux.Vars(r)
param := uriP["param"]
Is it possible to achieve this using gorilla/mux or any other router?