Reputation: 22565
I'm trying to pass an url to a controller.
http://something/index.php/api/http%3A%2F%2Fengadget.com
I get 404 Not Found error.
My route
Route::any("/api/{url}", "ApiController@parse");
How do I configure a route or controller to make it work?
Upvotes: 0
Views: 672
Reputation: 938
Route::any("/api/(:all)", "ApiController@parse");
http://laravel.com/docs/routing#wildcards
You use (:all) to catch the rest of the URI
Upvotes: 1