The `$` anchor needs to be dropped. If the URI is given with a trailing `/`, then URI#path will include it.
And, I'm still not sure if it may be possible for path to be something like `/v1.0/auth/`