adrema/app/Providers/RouteServiceProvider.php

65 lines
1.4 KiB
PHP
Raw Normal View History

2020-04-10 20:32:12 +02:00
<?php
namespace App\Providers;
use Illuminate\Foundation\Support\Providers\RouteServiceProvider as ServiceProvider;
use Illuminate\Support\Facades\Route;
class RouteServiceProvider extends ServiceProvider
{
/**
* This namespace is applied to your controller routes.
*
* In addition, it is set as the URL generator's root namespace.
*
* @var string
*/
protected $namespace = 'App\Http\Controllers';
/**
* The path to the "home" route for your application.
*
* @var string
*/
2020-04-10 23:39:05 +02:00
public const HOME = '/';
2020-04-10 20:32:12 +02:00
/**
* Define your route model bindings, pattern filters, etc.
*
* @return void
*/
public function boot()
{
parent::boot();
}
/**
* Define the routes for the application.
*
* @return void
*/
public function map()
{
$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(base_path('routes/web.php'));
2023-05-17 00:22:43 +02:00
Route::middleware('api')
->prefix('api')
->group(base_path('routes/api.php'));
2024-02-22 00:03:11 +01:00
Route::middleware('api')
->prefix('remote')
->group(base_path('routes/remote.php'));
2020-04-10 20:32:12 +02:00
}
}