X-Git-Url: http://source.bookstackapp.com/bookstack/blobdiff_plain/a3ead5062acc169ae3486d90ac2befe3db86bfe6..refs/pull/3391/head:/routes/web.php diff --git a/routes/web.php b/routes/web.php index d7e734c33..37f59b970 100644 --- a/routes/web.php +++ b/routes/web.php @@ -80,6 +80,8 @@ Route::middleware('auth')->group(function () { Route::get('/books/{bookSlug}/permissions', [BookController::class, 'showPermissions']); Route::put('/books/{bookSlug}/permissions', [BookController::class, 'permissions']); Route::get('/books/{slug}/delete', [BookController::class, 'showDelete']); + Route::get('/books/{bookSlug}/copy', [BookController::class, 'showCopy']); + Route::post('/books/{bookSlug}/copy', [BookController::class, 'copy']); Route::get('/books/{bookSlug}/sort', [BookSortController::class, 'show']); Route::put('/books/{bookSlug}/sort', [BookSortController::class, 'update']); Route::get('/books/{bookSlug}/export/html', [BookExportController::class, 'html']); @@ -127,6 +129,8 @@ Route::middleware('auth')->group(function () { Route::put('/books/{bookSlug}/chapter/{chapterSlug}', [ChapterController::class, 'update']); Route::get('/books/{bookSlug}/chapter/{chapterSlug}/move', [ChapterController::class, 'showMove']); Route::put('/books/{bookSlug}/chapter/{chapterSlug}/move', [ChapterController::class, 'move']); + Route::get('/books/{bookSlug}/chapter/{chapterSlug}/copy', [ChapterController::class, 'showCopy']); + Route::post('/books/{bookSlug}/chapter/{chapterSlug}/copy', [ChapterController::class, 'copy']); Route::get('/books/{bookSlug}/chapter/{chapterSlug}/edit', [ChapterController::class, 'edit']); Route::get('/books/{bookSlug}/chapter/{chapterSlug}/permissions', [ChapterController::class, 'showPermissions']); Route::get('/books/{bookSlug}/chapter/{chapterSlug}/export/pdf', [ChapterExportController::class, 'pdf']); @@ -202,11 +206,6 @@ Route::middleware('auth')->group(function () { // Other Pages Route::get('/', [HomeController::class, 'index']); Route::get('/home', [HomeController::class, 'index']); - Route::get('/custom-head-content', [HomeController::class, 'customHeadContent']); - - // Settings - Route::get('/settings', [SettingController::class, 'index'])->name('settings'); - Route::post('/settings', [SettingController::class, 'update']); // Maintenance Route::get('/settings/maintenance', [MaintenanceController::class, 'index']); @@ -264,6 +263,11 @@ Route::middleware('auth')->group(function () { Route::put('/settings/webhooks/{id}', [WebhookController::class, 'update']); Route::get('/settings/webhooks/{id}/delete', [WebhookController::class, 'delete']); Route::delete('/settings/webhooks/{id}', [WebhookController::class, 'destroy']); + + // Settings + Route::get('/settings', [SettingController::class, 'index'])->name('settings'); + Route::get('/settings/{category}', [SettingController::class, 'category'])->name('settings.category'); + Route::post('/settings/{category}', [SettingController::class, 'update']); }); // MFA routes @@ -318,12 +322,15 @@ Route::get('/oidc/callback', [Auth\OidcController::class, 'callback']); Route::get('/register/invite/{token}', [Auth\UserInviteController::class, 'showSetPassword']); Route::post('/register/invite/{token}', [Auth\UserInviteController::class, 'setPassword']); -// Password reset link request routes... +// Password reset link request routes Route::get('/password/email', [Auth\ForgotPasswordController::class, 'showLinkRequestForm']); Route::post('/password/email', [Auth\ForgotPasswordController::class, 'sendResetLinkEmail']); -// Password reset routes... +// Password reset routes Route::get('/password/reset/{token}', [Auth\ResetPasswordController::class, 'showResetForm']); Route::post('/password/reset', [Auth\ResetPasswordController::class, 'reset']); +// Metadata routes +Route::view('/help/wysiwyg', 'help.wysiwyg'); + Route::fallback([HomeController::class, 'notFound'])->name('fallback');