feat(api): expose family settings (#1645)

* feat(api): expose family settings

* test(api): assert family settings moniker

* test(api): align family settings api key helper

* fix(api): tighten family settings schema
This commit is contained in:
ghost
2026-05-03 15:10:46 -06:00
committed by GitHub
parent 911aa34ba9
commit e93b1f1fd7
7 changed files with 308 additions and 0 deletions

View File

@@ -0,0 +1,15 @@
# frozen_string_literal: true
class Api::V1::FamilySettingsController < Api::V1::BaseController
before_action :ensure_read_scope
def show
@family = current_resource_owner.family
end
private
def ensure_read_scope
authorize_scope!(:read)
end
end