mirror of
https://github.com/snipe/snipe-it.git
synced 2024-12-24 05:04:07 -08:00
Fixed #7752 - reformat /api/v1/users/me to use transformer
This commit is contained in:
parent
5f85d8132b
commit
89e2a3ae3c
|
@ -411,6 +411,6 @@ class UsersController extends Controller
|
||||||
*/
|
*/
|
||||||
public function getCurrentUserInfo(Request $request)
|
public function getCurrentUserInfo(Request $request)
|
||||||
{
|
{
|
||||||
return response()->json($request->user());
|
return (new UsersTransformer)->transformUser($request->user());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue