route
This commit is contained in:
parent
493b7f0f1e
commit
09f5acef41
|
|
@ -41,6 +41,13 @@ Route::prefix('/')
|
||||||
Route::get('logout', [LogoutController::class, 'index'])->name('logout');
|
Route::get('logout', [LogoutController::class, 'index'])->name('logout');
|
||||||
Route::resource('countries.zones', ZoneController::class);
|
Route::resource('countries.zones', ZoneController::class);
|
||||||
|
|
||||||
|
Route::middleware('shop_auth:' . Customer::AUTH_GUARD)
|
||||||
|
->group(function () {
|
||||||
|
Route::get('checkout', [CheckoutController::class, 'index'])->name('checkout.index');
|
||||||
|
Route::put('checkout', [CheckoutController::class, 'update'])->name('checkout.update');
|
||||||
|
Route::post('checkout/confirm', [CheckoutController::class, 'confirm'])->name('checkout.confirm');
|
||||||
|
});
|
||||||
|
|
||||||
Route::prefix('account/')
|
Route::prefix('account/')
|
||||||
->middleware('shop_auth:' . Customer::AUTH_GUARD)
|
->middleware('shop_auth:' . Customer::AUTH_GUARD)
|
||||||
->group(function () {
|
->group(function () {
|
||||||
|
|
@ -50,11 +57,4 @@ Route::prefix('/')
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
Route::middleware('shop_auth:' . Customer::AUTH_GUARD)
|
|
||||||
->group(function () {
|
|
||||||
Route::get('checkout', [CheckoutController::class, 'index'])->name('checkout.index');
|
|
||||||
Route::put('checkout', [CheckoutController::class, 'update'])->name('checkout.update');
|
|
||||||
Route::post('checkout/confirm', [CheckoutController::class, 'confirm'])->name('checkout.confirm');
|
|
||||||
});
|
|
||||||
|
|
||||||
Route::get('/{url_key}', [PagesController::class, 'show'])->name('pages.show');
|
Route::get('/{url_key}', [PagesController::class, 'show'])->name('pages.show');
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue