I have two route handlers
v1Router. Path("/{id}"). Methods(http.MethodGet). Handler(r.getter())
v1Router. Path("/"). Methods(http.MethodGet). Handler(r.searcher())
when i am sending request at /"some id" it is working as expected ,but when i am sending request at /. the request is going through second handler.
Can anyone explain the above behaviour?
when i am sending request at /"some id" it is working as expected ,but when i am sending request at /. the request is going through second handler.
No, they aren't. Especially not as an URL path.