Slide 41
Slide 41 text
API
App\Providers\RouteServiceProvider
protected function mapApiRoutes() {
Route::group([
'middleware' => ['api', 'auth:api'],
'namespace' => $this->namespace,
'prefix' => 'api',
], function ($router) {
require base_path('routes/api.php');
});