Skip to content

Commit

Permalink
Fixes route not defined exception on components and consumables
Browse files Browse the repository at this point in the history
  • Loading branch information
inietov committed Sep 24, 2021
1 parent 7f41bdf commit efc9a8e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions routes/web/components.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,22 +8,22 @@
Route::get(
'{componentID}/checkout',
[Components\ComponentCheckoutController::class, 'create']
)->name('checkout/accessory');
)->name('checkout/component');

Route::post(
'{componentID}/checkout',
[Components\ComponentCheckoutController::class, 'store']
)->name('checkout/accessory');
)->name('checkout/component');

Route::get(
'{componentID}/checkin/{backto?}',
[Components\ComponentCheckinController::class, 'create']
)->name('checkout/accessory');
)->name('checkout/component');

Route::post(
'{componentID}/checkin/{backto?}',
[Components\ComponentCheckinController::class, 'store']
)->name('checkout/accessory');
)->name('checkout/component');

});

Expand Down
4 changes: 2 additions & 2 deletions routes/web/consumables.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,12 @@
Route::get(
'{consumablesID}/checkout',
[Consumables\ConsumableCheckoutController::class, 'create']
)->name('checkout/accessory');
)->name('checkout/consumable');

Route::post(
'{consumablesID}/checkout',
[Consumables\ConsumableCheckoutController::class, 'store']
)->name('checkout/accessory');
)->name('checkout/consumable');


});
Expand Down

0 comments on commit efc9a8e

Please sign in to comment.