Update OAuth inflection to match spec (#35160)

This commit is contained in:
Matt Jankowski 2025-06-25 03:52:30 -04:00 committed by GitHub
commit 47fda2df2c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
18 changed files with 21 additions and 19 deletions

View file

@ -1,11 +1,11 @@
# frozen_string_literal: true
class Oauth::UserinfoController < Api::BaseController
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
render json: @account, serializer: OAuthUserinfoSerializer
end
end