File: D:/HostingSpaces/SBogers10/blije-gasten.komma.pro/app/Providers/RouteServiceProvider.php
<?php
namespace App\Providers;
use App\Komma\Auth\AuthRoutes;
use App\Komma\Components\ComponentRoutes;
use App\Komma\Employees\EmployeeRoutes;
use App\Komma\Forms\FormRoutes;
use App\Komma\Globalization\GlobalisationRoutes;
use App\Komma\Html5Upload\Html5UploadRoutes;
use App\Komma\Kms\ActionLog\ActionLogRoutes;
use App\Komma\Kms\Dashboard\DashboardRoutes;
use App\Komma\Kms\Development\MaintenanceRoutes;
use App\Komma\Kms\Development\PreviewRoutes;
use App\Komma\Kms\Transfer\TransferRoutes;
use App\Komma\Pages\PageRoutes;
use App\Komma\QuestionCategories\QuestionCategoryRoutes;
use App\Komma\Questions\QuestionRoutes;
use App\Komma\Sitemap\SitemapRoutes;
use App\Komma\Sites\SiteRoutes;
use App\Komma\Users\UserRoutes;
use App\Komma\Validation\ValidationRoutes;
use Illuminate\Support\Facades\Route;
use Illuminate\Foundation\Support\Providers\RouteServiceProvider as ServiceProvider;
class RouteServiceProvider extends ServiceProvider
{
/**
* Define the routes for the application.
*
* @return void
*/
public function map()
{
$this->mapApiRoutes();
$this->mapWebRoutes();
}
/**
* Define the "web" routes for the application.
*
* These routes all receive session state, CSRF protection, etc.
*
* @return void
*/
protected function mapWebRoutes()
{
Route::middleware('web')
->group(function () {
Route::group(['middleware' => 'auth:site'], function() {
});
AuthRoutes::web();
FormRoutes::web();
PageRoutes::web();
PreviewRoutes::web();
SitemapRoutes::web();
ValidationRoutes::routes();
GlobalisationRoutes::web();
ComponentRoutes::web();
});
Route::middleware(['web', 'kms'])
->prefix('kms')
->group(function () {
//Authenticated routes
Route::group(['middleware' => 'auth:kms'], function() {
// KMS Core routes
ActionLogRoutes::kms();
DashboardRoutes::kms();
Html5UploadRoutes::kms();
MaintenanceRoutes::kms();
SiteRoutes::kms();
TransferRoutes::kms();
UserRoutes::kms();
QuestionRoutes::kms();
QuestionCategoryRoutes::kms();
EmployeeRoutes::kms();
PageRoutes::kms();
});
});
}
/**
* Define the "api" routes for the application.
*
* These routes are typically stateless.
*
* @return void
*/
protected function mapApiRoutes()
{
Route::group([
'middleware' => 'api',
'namespace' => 'App\Komma',
'prefix' => 'api',
], function ($router) {
// require_once base_path('routes/api.php');
});
}
}