Pass URL as parameter in silex controller
I want to pass a url as parameter to a controller as like below:
$api->get('/getfile/{fileurl}', function(Request $request, $fileurl){
//do something
}
Here {fileurl} can be a valid http url. However, the above mapping isn't
working and resulting 404(may be because of the slashes in the {fileurl}
part?) . How to solve it to accept the $url in $fileurl variable?
No comments:
Post a Comment