1
0
mirror of https://github.com/glitch-soc/mastodon.git synced 2025-03-03 06:51:41 -05:00

12 lines
301 B
Ruby
Raw Normal View History

2024-10-30 15:38:10 +01:00
# frozen_string_literal: true
class Oauth::UserinfoController < Api::BaseController
before_action -> { doorkeeper_authorize! :profile }, only: [:show]
before_action :require_user!
def show
@account = current_account
render json: @account, serializer: OauthUserinfoSerializer
end
end