Route::prefix('storage')->match(['GET', 'POST'], '{any?}', function (Request $request) { })->where('any', '.*');
This accepts any number of URIs.