Update OAuth inflection to match spec (#35160)

This commit is contained in:
Matt Jankowski authored and GitHub committed 2025-06-25 07:52:30 +00:00
1 parent 377289c961
commit 47fda2df2c
18 files changed
+21 -19

No files matched your search

+2 -2
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