|
@@ -1,19 +1,3 @@
|
1
|
1
|
<?php
|
2
|
2
|
|
3
|
|
-use Illuminate\Http\Request;
|
4
|
|
-use Illuminate\Support\Facades\Route;
|
5
|
|
-
|
6
|
|
-/*
|
7
|
|
-|--------------------------------------------------------------------------
|
8
|
|
-| API Routes
|
9
|
|
-|--------------------------------------------------------------------------
|
10
|
|
-|
|
11
|
|
-| Here is where you can register API routes for your application. These
|
12
|
|
-| routes are loaded by the RouteServiceProvider within a group which
|
13
|
|
-| is assigned the "api" middleware group. Enjoy building your API!
|
14
|
|
-|
|
15
|
|
-*/
|
16
|
|
-
|
17
|
|
-Route::middleware('auth:sanctum')->get('/user', function (Request $request) {
|
18
|
|
- return $request->user();
|
19
|
|
-});
|
|
3
|
+use Illuminate\Support\Facades\Route;
|