demo/app/Modules/Torrent/UI/Web/routes.php
2023-03-23 18:50:47 +01:00

14 lines
445 B
PHP

<?php
use LaraBB\Torrent\UI\Web\Handlers\DownloadHandler;
use LaraBB\Torrent\UI\Web\Handlers\StoreHandler;
use LaraBB\Torrent\UI\Web\Handlers\UploadHandler;
Route::group([
'prefix' => 'torrent'
], function() {
Route::get('/{uuid?}', UploadHandler::class)->name('torrent.upload');
Route::post('/', StoreHandler::class)->name('torrent.store');
Route::get('download/{uuid}', DownloadHandler::class)->name('torrent.download');
});