For a given route with path param (example below)
router.GET("/employee/:id", empHandler.GetEmployee)
When tried to invoke the url with id path-param(encoded) containing forward slashes
id = 21/admin/527
url-encoded id = 21%2Fadmin%2F527
https://localhost:8000/emplayee/21%2Fadmin%2F527
I'm getting 404 when I try to hit this request It seems that gin is automatically decoding the path param and forming a route with url containing decoded path-param
https://localhost:8000/emplayee/21/admin/527
I want the exact encoded value for employee id path-param since it is to be used for calling other api which requires it to be url-encoded.