mirror of
https://github.com/AnimeThemes/animethemes-server.git
synced 2026-07-11 01:24:46 +02:00
24 lines
804 B
PHP
24 lines
804 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
use App\Features\AllowDumpDownloading;
|
|
use App\Http\Controllers\Admin\DumpController;
|
|
use App\Http\Controllers\Admin\LatestContentDumpController;
|
|
use Illuminate\Support\Facades\Route;
|
|
use Laravel\Pennant\Middleware\EnsureFeaturesAreActive;
|
|
|
|
$isDumpDownloadingAllowed = EnsureFeaturesAreActive::using(AllowDumpDownloading::class);
|
|
|
|
Route::get('/latest/content', [LatestContentDumpController::class, 'show'])
|
|
->name('dump.latest.content.show')
|
|
->middleware($isDumpDownloadingAllowed);
|
|
|
|
Route::get('/latest/wiki', [LatestContentDumpController::class, 'show'])
|
|
->name('dump.latest.wiki.show')
|
|
->middleware($isDumpDownloadingAllowed);
|
|
|
|
Route::get('/{dump}', [DumpController::class, 'show'])
|
|
->name('dump.show')
|
|
->middleware($isDumpDownloadingAllowed);
|