mirror of
https://github.com/AnimeThemes/animethemes-server.git
synced 2026-07-11 01:24:46 +02:00
517ba0ebf8
* feat: add playlist resources * style: fix StyleCI findings * fix(admin): address nova exceptions
18 lines
501 B
PHP
18 lines
501 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
use App\Constants\Config\FlagConstants;
|
|
use App\Http\Controllers\Admin\DumpController;
|
|
use Illuminate\Support\Facades\Route;
|
|
use Illuminate\Support\Str;
|
|
|
|
$isDumpDownloadingAllowed = Str::of('is_feature_enabled:')
|
|
->append(FlagConstants::ALLOW_DUMP_DOWNLOADING_FLAG_QUALIFIED)
|
|
->append(',Dump Downloading Disabled')
|
|
->__toString();
|
|
|
|
Route::get('/{dump}', [DumpController::class, 'show'])
|
|
->name('dump.show')
|
|
->middleware($isDumpDownloadingAllowed);
|