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

Change ( API User route )

parent 191ebb40
No related branches found
No related tags found
No related merge requests found
......@@ -15,7 +15,7 @@ use Illuminate\Support\Facades\Route;
*/
 
Route::group(['prefix' => 'user'], function() {
Route::get('/', function() {
Route::middleware('auth:api')->get('/', function() {
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