laravelEcomm/routes/web.php

28 lines
994 B
PHP
Raw Normal View History

2024-07-04 04:34:45 +00:00
<?php
use App\Http\Controllers\MainController;
use Illuminate\Support\Facades\Route;
Route::get('/', [MainController::class, 'index']);
Route::get('/about', [MainController::class, 'about']);
Route::get('/blog', [MainController::class, 'blog']);
Route::get('/blogDetails', [MainController::class, 'blogDetails']);
2024-07-05 06:55:14 +00:00
Route::get('/cart', [MainController::class, 'cart']);
Route::post('/addToCart', [MainController::class, 'addToCart']);
2024-07-04 04:34:45 +00:00
Route::get('/checkout', [MainController::class, 'checkout']);
Route::get('/main', [MainController::class, 'main']);
2024-07-04 07:19:28 +00:00
2024-07-04 04:34:45 +00:00
Route::get('/shop', [MainController::class, 'shop']);
Route::get('/single/{id}', [MainController::class, 'singleProduct']);
Route::get('/register', [MainController::class, 'register']);
Route::post('/registerUser', [MainController::class, 'registerUser']);
Route::get('/login', [MainController::class, 'login']);
Route::post('/loginUser', [MainController::class, 'loginUser']);
Route::get('/logout', [MainController::class, 'logout']);