Adding Item Page
This commit is contained in:
parent
868d49af23
commit
ac7e64c75c
6 changed files with 148 additions and 0 deletions
|
|
@ -8,6 +8,7 @@ use App\Http\Controllers\CharacterController;
|
|||
use App\Http\Controllers\CharacterProfessionController;
|
||||
use App\Http\Controllers\ProfessionController;
|
||||
use App\Http\Controllers\RecipeController;
|
||||
use App\Http\Controllers\ItemController;
|
||||
|
||||
use App\Http\Controllers\Auth\SessionController;
|
||||
|
||||
|
|
@ -68,6 +69,12 @@ Route::prefix('recipes')->name('recipe.')->group(function () {
|
|||
Route::get('/{recipe}', [RecipeController::class, 'show'])->name('show');
|
||||
});
|
||||
|
||||
// Items
|
||||
Route::prefix('items')->name('item.')->group(function () {
|
||||
Route::get('/', [ItemController::class, 'index'])->name('index');
|
||||
Route::get('/{item}', [ItemController::class, 'show'])->name('show');
|
||||
});
|
||||
|
||||
// Authenticated section
|
||||
// ----------------------------
|
||||
Route::middleware(['auth'])->group(function() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue