I have below piece of code to rewrite the path while routing the request to correct endpoint. However still the routing happening with full URL (original) without rewriting URL.