Skip to content

Commit

Permalink
Fix api doc not showing (#2996)
Browse files Browse the repository at this point in the history
  • Loading branch information
ildyria authored Feb 10, 2025
1 parent 6b00c58 commit 5f54afd
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 6 deletions.
12 changes: 6 additions & 6 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions routes/web_v2.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@

use App\Enum\OauthProvidersType;
use App\Legacy\V1\Controllers\RedirectController;
use Dedoc\Scramble\Scramble;
use Illuminate\Foundation\Events\DiagnosingHealth;
use Illuminate\Support\Facades\Event;
use Illuminate\Support\Facades\Route;
Expand Down Expand Up @@ -80,5 +81,8 @@
Route::get('/r/{albumID}/{photoID}', [RedirectController::class, 'photo'])->middleware(['migration:complete']);
Route::get('/r/{albumID}', [RedirectController::class, 'album'])->middleware(['migration:complete']);

// We need to register this manually.
Scramble::registerUiRoute(path: 'docs/api')->name('scramble.docs.ui');

// This route must be defined last because it is a catch all.
Route::match(['get', 'post'], '{path}', HoneyPotController::class)->where('path', '.*');

0 comments on commit 5f54afd

Please sign in to comment.