Skip to content

Commit

Permalink
feat: Updated routes/web.php
Browse files Browse the repository at this point in the history
  • Loading branch information
sweep-ai[bot] committed Mar 11, 2024
1 parent 68fa1c1 commit eca50ff
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions routes/web.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,11 @@
Route::get('/', function () {
return view('welcome');
});
Route::prefix('payment_methods')->group(function () {
Route::get('/', 'PaymentMethodController@index')->name('payment_methods.index');
Route::post('/store', 'PaymentMethodController@addPaymentMethod')->name('payment_methods.store');
Route::get('/edit/{id}', 'PaymentMethodController@editPaymentMethod')->name('payment_methods.edit');
Route::post('/update/{id}', 'PaymentMethodController@editPaymentMethod')->name('payment_methods.update');
Route::delete('/destroy/{id}', 'PaymentMethodController@deletePaymentMethod')->name('payment_methods.destroy');
Route::post('/set_default/{id}', 'PaymentMethodController@setDefaultPaymentMethod')->name('payment_methods.setDefault');
});

0 comments on commit eca50ff

Please sign in to comment.