Add GET /api/v1/profile (#37912)

This commit is contained in:
Claire authored and GitHub committed 2026-02-20 10:16:04 +00:00
1 parent e24737c612
commit cc1e65dcec
4 files changed
+128 -42

No files matched your search

@@ -0,0 +1,11 @@
# frozen_string_literal: true
class Api::V1::ProfilesController < Api::BaseController
before_action -> { doorkeeper_authorize! :profile, :read, :'read:accounts' }
before_action :require_user!
def show
@account = current_account
render json: @account, serializer: REST::ProfileSerializer
end
end