diff options
author | Marvin Borner | 2018-07-09 19:57:19 +0200 |
---|---|---|
committer | Marvin Borner | 2018-07-09 19:57:19 +0200 |
commit | 75adb031897ab2a2b66051e1acb186bfdff6a4a4 (patch) | |
tree | 5cacef38857ba9d76342bdca79fc77754a908e38 /app/Providers/RouteServiceProvider.php | |
parent | 0675967adc29e267f7b15bd9f9090bb16cb0339b (diff) |
Better API
Diffstat (limited to 'app/Providers/RouteServiceProvider.php')
-rw-r--r-- | app/Providers/RouteServiceProvider.php | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/app/Providers/RouteServiceProvider.php b/app/Providers/RouteServiceProvider.php index 5ea48d3..49f44ff 100644 --- a/app/Providers/RouteServiceProvider.php +++ b/app/Providers/RouteServiceProvider.php @@ -2,8 +2,8 @@ namespace App\Providers; -use Illuminate\Support\Facades\Route; use Illuminate\Foundation\Support\Providers\RouteServiceProvider as ServiceProvider; +use Illuminate\Support\Facades\Route; class RouteServiceProvider extends ServiceProvider { @@ -52,8 +52,12 @@ class RouteServiceProvider extends ServiceProvider protected function mapWebRoutes() { Route::middleware('web') - ->namespace($this->namespace) - ->group(base_path('routes/web.php')); + ->namespace($this->namespace) + ->group(base_path('routes/web.php')); + + Route::middleware('web') + ->namespace($this->namespace) + ->group(base_path('routes/keys.php')); } /** @@ -66,8 +70,8 @@ class RouteServiceProvider extends ServiceProvider protected function mapApiRoutes() { Route::prefix('api') - ->middleware('api') - ->namespace($this->namespace) - ->group(base_path('routes/api.php')); + //->middleware('api') + ->namespace($this->namespace) + ->group(base_path('routes/api.php')); } } |