Skip to content
Snippets Groups Projects
Commit 191ebb40 authored by Martin's avatar Martin
Browse files

Change (API User route )

parent ecb2786a
No related branches found
No related tags found
No related merge requests found
......@@ -16,6 +16,6 @@ use Illuminate\Support\Facades\Route;
 
Route::group(['prefix' => 'user'], function() {
Route::get('/', function() {
return response()->json(request()->user());
return response()->json(\Illuminate\Support\Facades\Auth::user());
});
});
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment