Browse Source

use new route syntax

Taylor Otwell 2 years ago
parent
commit
99bb07502c
1 changed files with 2 additions and 2 deletions
  1. 2 2
      routes/api.php

+ 2 - 2
routes/api.php

@@ -13,6 +13,6 @@ use Illuminate\Http\Request;
 |
 */
 
-Route::get('/user', function (Request $request) {
+Route::middleware('auth:api')->get('/user', function (Request $request) {
     return $request->user();
-})->middleware('auth:api');
+});