Remove api routes

This commit is contained in:
philipp lang 2021-04-10 00:30:03 +02:00
parent 205664611d
commit 95df7a9d95
3 changed files with 2380 additions and 1045 deletions

View File

@ -42,11 +42,7 @@ class RouteServiceProvider extends ServiceProvider
*/
public function map()
{
$this->mapApiRoutes();
$this->mapWebRoutes();
//
}
/**
@ -61,19 +57,4 @@ class RouteServiceProvider extends ServiceProvider
Route::middleware('web')
->group(base_path('routes/web.php'));
}
/**
* Define the "api" routes for the application.
*
* These routes are typically stateless.
*
* @return void
*/
protected function mapApiRoutes()
{
Route::prefix('api')
->middleware('api')
->namespace($this->namespace)
->group(base_path('routes/api.php'));
}
}

3387
composer.lock generated

File diff suppressed because it is too large Load Diff

View File

@ -1,19 +0,0 @@
<?php
use Illuminate\Http\Request;
use Illuminate\Support\Facades\Route;
/*
|--------------------------------------------------------------------------
| API Routes
|--------------------------------------------------------------------------
|
| Here is where you can register API routes for your application. These
| routes are loaded by the RouteServiceProvider within a group which
| is assigned the "api" middleware group. Enjoy building your API!
|
*/
Route::middleware('auth:api')->get('/user', function (Request $request) {
return $request->user();
});