File: D:/HostingSpaces/SBogers10/werken-bij-stafa.komma.pro/app/Providers/RouteServiceProvider.php
<?php
namespace App\Providers;
use App\Komma\Auth\AuthRoutes;
use App\Komma\Buttons\ButtonRoutes;
use App\Komma\Components\ComponentRoutes;
use App\Komma\Forms\FormRoutes;
use App\Komma\Html5Upload\Html5UploadRoutes;
use App\Komma\Jobs\JobRoutes;
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\Servicepoints\ServicepointRoutes;
use App\Komma\Sitemap\SitemapRoutes;
use App\Komma\Sites\SiteRoutes;
use App\Komma\Users\UserRoutes;
use App\Komma\WebsiteConfig\WebsiteConfigRoutes;
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 () {
AuthRoutes::web();
FormRoutes::web();
PageRoutes::web();
JobRoutes::web();
PreviewRoutes::web();
SitemapRoutes::web();
//TODO: Refactor these routes to kms
ComponentRoutes::web();
});
Route::middleware(['web', 'kms'])
->prefix('kms')
->group(function () {
// KMS Core routes
ActionLogRoutes::kms();
DashboardRoutes::kms();
WebsiteConfigRoutes::kms();
Html5UploadRoutes::kms();
MaintenanceRoutes::kms();
SiteRoutes::kms();
TransferRoutes::kms();
UserRoutes::kms();
// KMS Site routes
PageRoutes::kms();
JobRoutes::kms();
ButtonRoutes::kms();
ServicepointRoutes::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');
});
}
}