Renamed route api to route api v1.

This commit is contained in:
Leonid Nikitin 2023-03-05 20:42:09 +06:00
parent 587679a33c
commit f49cc60f9a
Signed by: kor-elf
GPG Key ID: 7DE8F80C5CEC2C0D
2 changed files with 2 additions and 6 deletions

View File

@ -28,8 +28,8 @@ class RouteServiceProvider extends ServiceProvider
$this->routes(function () { $this->routes(function () {
Route::middleware('api') Route::middleware('api')
->prefix('api') ->prefix('api/v1')
->group(base_path('routes/api.php')); ->group(base_path('routes/api-v1.php'));
Route::middleware('web') Route::middleware('web')
->group(base_path('routes/web.php')); ->group(base_path('routes/web.php'));

View File

@ -13,7 +13,3 @@ use Illuminate\Support\Facades\Route;
| be assigned to the "api" middleware group. Make something great! | be assigned to the "api" middleware group. Make something great!
| |
*/ */
Route::middleware('auth:sanctum')->get('/user', function (Request $request) {
return $request->user();
});