mirror of
https://git.kescher.at/CatCatNya/catstodon.git
synced 2024-11-26 18:21:37 +01:00
12 lines
301 B
Ruby
12 lines
301 B
Ruby
|
# 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
|