Skip to content

Commit

Permalink
Merge pull request #10128 from inietov/fixes/route_not_defined_compon…
Browse files Browse the repository at this point in the history
…ents_consumables

Fixes route not defined exception on components and consumables
  • Loading branch information
snipe authored Sep 24, 2021
2 parents 7f41bdf + efc9a8e commit d480084
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 d480084

Please sign in to comment.