diff --git a/app/Http/Controllers/DownloadController.php b/app/Http/Controllers/DownloadController.php index 79aeefd..345f8f1 100644 --- a/app/Http/Controllers/DownloadController.php +++ b/app/Http/Controllers/DownloadController.php @@ -7,7 +7,7 @@ use Illuminate\Http\Request; class DownloadController extends Controller { public function download($file_name) { - $file_path = public_path('/'.$file_name); + $file_path = public_path('/'.'downloads/'.$file_name); return response()->download($file_path); } } diff --git a/public/downloads/Desolation's Wake Teaser | Hunt: Showdown-geSEE-kv8KA.mp4 b/public/downloads/Desolation's Wake Teaser | Hunt: Showdown-geSEE-kv8KA.mp4 new file mode 100644 index 0000000..06d4b5b Binary files /dev/null and b/public/downloads/Desolation's Wake Teaser | Hunt: Showdown-geSEE-kv8KA.mp4 differ diff --git a/routes/web.php b/routes/web.php index be4581e..ed83ab3 100644 --- a/routes/web.php +++ b/routes/web.php @@ -18,4 +18,4 @@ Route::get('/', function () { }); Route::get('/download_api', 'App\Http\Controllers\YoutubeDownloadController@index'); -Route::get('/download/{file}', 'App\Http\Controllers\DownloadController@index'); +Route::get('/download/{file}', 'App\Http\Controllers\DownloadController@download');