Micro routing with URL

I am building an API using micro application, and I am trying to pass an URL through get, it seems router couldn't accpet http url straight away.


$app->map('/agent/{url:(.*)}', [

In action, the URL I got is https:/www.google.com/images/branding/googlelogo/2x/googlelogo_color_92x30dp.png, which is missing a slash after https, does anyone experience a case like this before?


i couldn't figure the proper solution but i got one and its ugly but it works

    function ($url) {
        exit(var_dump(substr($_SERVER['REQUEST_URI'], strlen($this->config->application->baseUri . 'agent/'))));