From b5ba7725d2915f9320f41a2fc55f8109931d8b95 Mon Sep 17 00:00:00 2001 From: Justin Edmund Date: Fri, 4 Mar 2022 03:57:35 -0800 Subject: [PATCH] Add picture node to user template --- app/views/api/v1/users/base.json.rabl | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/app/views/api/v1/users/base.json.rabl b/app/views/api/v1/users/base.json.rabl index aeb5ec2..2c11719 100644 --- a/app/views/api/v1/users/base.json.rabl +++ b/app/views/api/v1/users/base.json.rabl @@ -3,6 +3,12 @@ object :user attributes :id, :username, :granblue_id, - :picture, :language, - :private \ No newline at end of file + :private + +node :picture do |u| + { + :picture => u.picture, + :element => u.element + } +end \ No newline at end of file