Skip to content

Commit

Permalink
use new route syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
taylorotwell committed Dec 6, 2016
1 parent d4bddc5 commit 99bb075
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions routes/api.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,6 @@
|
*/

Route::get('/user', function (Request $request) {
Route::middleware('auth:api')->get('/user', function (Request $request) {
return $request->user();
})->middleware('auth:api');
});

0 comments on commit 99bb075

Please sign in to comment.