youtube-download-service/routes/web.php

22 lines
680 B
PHP
Raw Permalink Normal View History

2024-06-17 10:13:49 +03:00
<?php
use Illuminate\Support\Facades\Route;
/*
|--------------------------------------------------------------------------
| Web Routes
|--------------------------------------------------------------------------
|
| Here is where you can register web routes for your application. These
| routes are loaded by the RouteServiceProvider and all of them will
| be assigned to the "web" middleware group. Make something great!
|
*/
Route::get('/', function () {
return view('welcome');
});
2024-06-17 12:44:56 +03:00
Route::get('/download_api', 'App\Http\Controllers\YoutubeDownloadController@index');
2024-06-18 06:21:52 +03:00
Route::get('/download/{file}', 'App\Http\Controllers\DownloadController@download')->name('download');