Istio Authorization Policy Path ending slash

I am playing with authorization policies within Istio and noticed that slashes matter at the end of my path for an ALLOW policy for example.

if in my policy I have ALLOW “/api/dogs”
then /api/dogs will of course work, but /api/dogs/ will not

Is there anyway to ignore the ending slash? I know that I can put 2 entries in my path, one with a slash, one without, but that seems like a lot of overhead for all of my endpoints.

Thank you!

Even if ‘thats the only way to do it’ is the answer, im fine with that, I would just like someone to confirm for me. Thanks again!