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 34d76da commit 94957c7
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions routes/web.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,16 @@
Route::get('/', function () {
return view('welcome');
});
Route::get('/checkout', function () {
return view('checkout');
})->name('checkout');

Route::post('/payment', 'App\Http\Controllers\StripePaymentController@createOneTimePayment')->name('payment.create');

Route::get('/subscriptions', 'App\Http\Controllers\SubscriptionController@viewAvailableSubscriptions')->name('subscriptions.view');

Route::post('/subscription', 'App\Http\Controllers\SubscriptionController@subscribeToPlan')->name('subscription.create');

Route::patch('/subscription/change', 'App\Http\Controllers\SubscriptionController@changePlan')->name('subscription.change-plan');

Route::delete('/subscription/cancel', 'App\Http\Controllers\SubscriptionController@cancelSubscription')->name('subscription.cancel');

0 comments on commit 94957c7

Please sign in to comment.