diff --git a/app/blueprints/api/v1/user_blueprint.rb b/app/blueprints/api/v1/user_blueprint.rb index 078de5a..14fa095 100644 --- a/app/blueprints/api/v1/user_blueprint.rb +++ b/app/blueprints/api/v1/user_blueprint.rb @@ -4,7 +4,7 @@ module Api module V1 class UserBlueprint < ApiBlueprint view :minimal do - fields :username, :language, :private, :gender, :theme, :role + fields :username, :language, :private, :gender, :theme, :role, :granblue_id, :show_gamertag field :avatar do |user| { picture: user.picture, diff --git a/app/controllers/api/v1/users_controller.rb b/app/controllers/api/v1/users_controller.rb index 735fb0e..ef7ccf9 100644 --- a/app/controllers/api/v1/users_controller.rb +++ b/app/controllers/api/v1/users_controller.rb @@ -237,7 +237,7 @@ module Api def user_params params.require(:user).permit( :username, :email, :password, :password_confirmation, - :granblue_id, :picture, :element, :language, :gender, :private, :theme + :granblue_id, :picture, :element, :language, :gender, :private, :theme, :show_gamertag ) end end