close #700 Fixed: Signed url not working

This commit is contained in:
cuneytsenturk
2018-12-26 16:46:52 +03:00
parent 1ec85c8374
commit c914c73837
9 changed files with 66 additions and 33 deletions

View File

@@ -39,6 +39,8 @@ class RouteServiceProvider extends ServiceProvider
$this->mapWebRoutes();
$this->mapSignedRoutes();
//
}
@@ -52,8 +54,23 @@ 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'));
}
/**
* Define the "signed" routes for the application.
*
* These routes all receive session state, CSRF protection, etc.
*
* @return void
*/
protected function mapSignedRoutes()
{
Route::prefix('signed')
->middleware('signed')
->namespace($this->namespace)
->group(base_path('routes/signed.php'));
}
/**
@@ -66,8 +83,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'));
}
}