In the IEndpointFilter would like to get the route used.
app.MapGet("/get/{productId:guid}", ......
public class MyFilter : IEndpointFilter
{
public async ValueTask<object?> InvokeAsync(EndpointFilterInvocationContext context, EndpointFilterDelegate next)
{
//Getting it here /get/{productId:guid}
return await next.Invoke(context);
}
}