mirror of
https://github.com/we-promise/sure.git
synced 2026-05-07 12:54:04 +00:00
* 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
16 lines
274 B
Ruby
16 lines
274 B
Ruby
# 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
|