1
0
mirror of https://github.com/BookStackApp/BookStack.git synced 2025-07-28 17:02:04 +03:00

Added /api => /api/docs redirect for convenience.

This commit is contained in:
Dan Brown
2021-11-14 15:20:04 +00:00
parent 7025cb38df
commit 2051189921
2 changed files with 7 additions and 0 deletions

View File

@ -42,6 +42,7 @@ Route::middleware('auth')->group(function () {
->where('path', '.*$');
// API docs routes
Route::redirect('/api', '/api/docs');
Route::get('/api/docs', [Api\ApiDocsController::class, 'display']);
Route::get('/pages/recently-updated', [PageController::class, 'showRecentlyUpdated']);