langswitch

This commit is contained in:
Arno Kaimbacher 2018-11-21 13:40:34 +01:00
parent ad42e73126
commit 8d91d0e7a8
14 changed files with 792 additions and 76 deletions

View file

@ -5,46 +5,46 @@ namespace App\Providers;
use Illuminate\Support\Facades\Route;
use Illuminate\Foundation\Support\Providers\RouteServiceProvider as ServiceProvider;
class RouteServiceProvider extends ServiceProvider
class RouteServiceProvider extends ServiceProvider
{
/**
* This namespace is applied to the controller routes in your routes file.
*
* In addition, it is set as the URL generator's root namespace.
*
* @var string
*/
protected $namespace = 'App\Http\Controllers';
/**
* This namespace is applied to the controller routes in your routes file.
*
* In addition, it is set as the URL generator's root namespace.
*
* @var string
*/
protected $namespace = 'App\Http\Controllers';
/**
* Define your route model bindings, pattern filters, etc.
*
* @param \Illuminate\Routing\Router $router
* @return void
*/
public function boot()
{
parent::boot();
/**
* Define your route model bindings, pattern filters, etc.
*
* @param \Illuminate\Routing\Router $router
* @return void
*/
public function boot()
{
parent::boot();
//
}
//
}
/**
* Define the routes for the application.
*
* @param \Illuminate\Routing\Router $router
* @return void
*/
public function map()
{
/**
* Define the routes for the application.
*
* @param \Illuminate\Routing\Router $router
* @return void
*/
public function map()
{
//Route::group(['namespace' => $this->namespace], function()
//{
// require app_path('Http/routes.php');
//});
$this->mapApiRoutes();
//});
$this->mapApiRoutes();
$this->mapWebRoutes();
}
}
/**
* Define the "web" routes for the application.
@ -58,9 +58,9 @@ class RouteServiceProvider extends ServiceProvider
Route::middleware('web')
->namespace($this->namespace)
->group(base_path('routes/web.php'));
}
/**
}
/**
* Define the "api" routes for the application.
*
* These routes are typically stateless.