mirror of
https://github.com/we-promise/sure.git
synced 2026-05-07 12:54:04 +00:00
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:
15
app/controllers/api/v1/family_settings_controller.rb
Normal file
15
app/controllers/api/v1/family_settings_controller.rb
Normal 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
|
||||
Reference in New Issue
Block a user