Come BackEnd

This commit is contained in:
saeid_01
2019-04-18 20:18:13 +04:30
parent dfbefad4a4
commit 03a135305b
61 changed files with 3266 additions and 58 deletions
+19 -3
View File
@@ -35,6 +35,9 @@ class RouteServiceProvider extends ServiceProvider
*/
public function map()
{
$this->mapRoutes();
$this->mapApiRoutes();
$this->mapWebRoutes();
@@ -66,8 +69,21 @@ 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'));
}
/**
* Define the routes without middleware for the application.
*
* These routes are typically stateless.
*
* @return void
*/
protected function mapRoutes()
{
Route::namespace($this->namespace)
->group(base_path('routes/routes.php'));
}
}