Renamed route api to route api v1.

This commit is contained in:
kor-elf committed 2023-03-05 20:42:09 +06:00
1 parent 587679a33c
commit f49cc60f9a
2 files changed
+2 -6

No files matched your search

+2 -2
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'));
-4
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();
});