File: D:/HostingSpaces/SBogers10/inzigd.komma.pro/app/Komma/Shop/ShopRoutes.php
<?php
namespace App\Komma\Shop;
use Illuminate\Support\Facades\Route;
$shopPath = app_path('Komma'.DIRECTORY_SEPARATOR.'Shop'.DIRECTORY_SEPARATOR);
Route::group(['middleware' => ['web']], function () use ($shopPath) {
Route::group(['middleware' => ['auth']], function() use ($shopPath) {
//Place route files here which contain routes which all only accept authenticated users
require $shopPath.'Discounts'.DIRECTORY_SEPARATOR.'discountRoutes.php';
require $shopPath.'Properties'.DIRECTORY_SEPARATOR.'propertyRoutes.php';
require $shopPath.'orders'.DIRECTORY_SEPARATOR.'orderRoutes.php';
});
//Place unauthenticated route files here. and place route files here which
//contain both authenticated (using auth middleware) or unauthenticated routes
require $shopPath.'Products'.DIRECTORY_SEPARATOR.'productRoutes.php';
require $shopPath.'Catalog'.DIRECTORY_SEPARATOR.'catalogRoutes.php';
require $shopPath.'Cart'.DIRECTORY_SEPARATOR.'cartRoutes.php';
require $shopPath.'Categories'.DIRECTORY_SEPARATOR.'categoryRoutes.php';
require $shopPath.'Checkout'.DIRECTORY_SEPARATOR.'checkoutRoutes.php';
require $shopPath.'ShipmentGroups'.DIRECTORY_SEPARATOR.'shipmentGroupRoutes.php';
require $shopPath.'Shipments'.DIRECTORY_SEPARATOR.'shipmentRoutes.php';
});
Route::group(['middleware' => ['pspapi']], function () use ($shopPath) {
require $shopPath . 'Payment' . DIRECTORY_SEPARATOR . 'paymentRoutes.php';
});