40 lines
1.5 KiB
PHP
Raw Normal View History

2024-07-04 10:19:45 +05:45
<?php
use App\Http\Controllers\MainController;
use App\Http\Controllers\StripePaymentController;
2024-07-04 10:19:45 +05:45
use Illuminate\Support\Facades\Route;
Route::get('/', [MainController::class, 'index']);
Route::get('/about', [MainController::class, 'about']);
Route::get('/blog', [MainController::class, 'blog']);
Route::get('/profile', [MainController::class, 'profile']);
Route::post('/updateUser', [MainController::class, 'updateUser']);
2024-07-05 12:40:14 +05:45
Route::get('/cart', [MainController::class, 'cart']);
Route::post('/addToCart', [MainController::class, 'addToCart']);
2024-07-05 13:14:27 +05:45
Route::get('/deleteCartItem/{id}', [MainController::class, 'deleteCartItem']);
2024-07-07 13:06:31 +05:45
Route::post('/updateCartItem/{id}', [MainController::class, 'updateCartItem'])->name("cart.update");
2024-07-05 15:43:08 +05:45
2024-07-04 10:19:45 +05:45
Route::get('/checkout', [MainController::class, 'checkout']);
Route::get('/main', [MainController::class, 'main']);
2024-07-04 13:04:28 +05:45
2024-07-04 10:19:45 +05:45
Route::get('/shop', [MainController::class, 'shop']);
Route::get('/single/{id}', [MainController::class, 'singleProduct']);
Route::get('/register', [MainController::class, 'register'])->name('register');
Route::post('/registerUser', [MainController::class, 'registerUser'])->name('registerUser');
2024-07-04 10:19:45 +05:45
Route::get('/login', [MainController::class, 'login']);
Route::post('/loginUser', [MainController::class, 'loginUser']);
Route::get('/logout', [MainController::class, 'logout']);
Route::controller(StripePaymentController::class)->group(function () {
Route::get('stripe', 'stripe');
Route::post('stripe', 'stripePost')->name('stripe.post');
});