Fixed #7752 - reformat /api/v1/users/me to use transformer

This commit is contained in:
snipe 2020-01-30 13:12:43 -08:00
parent 5f85d8132b
commit 89e2a3ae3c

View file

@ -411,6 +411,6 @@ class UsersController extends Controller
*/
public function getCurrentUserInfo(Request $request)
{
return response()->json($request->user());
return (new UsersTransformer)->transformUser($request->user());
}
}