|
|
@@ -39,3 +39,11 @@ Route::get('/book/{id}', function ($id) {
|
|
|
return view('book', ['id' => $id]);
|
|
|
});
|
|
|
Route::redirect('/privacy', '/privacy/index');
|
|
|
+
|
|
|
+use App\Http\Controllers\CategoryController;
|
|
|
+use App\Http\Controllers\BookController;
|
|
|
+
|
|
|
+Route::get('/library', [CategoryController::class, 'index'])->name('home');
|
|
|
+Route::get('/library/category/{id}', [CategoryController::class, 'show'])->name('category.show');
|
|
|
+Route::get('/library/book/{id}', [BookController::class, 'show'])->name('book.show');
|
|
|
+Route::get('/library/book/{id}/read', [BookController::class, 'read'])->name('book.read');
|