add testing environment

This commit is contained in:
Pete Matsyburka committed 2024-01-21 11:20:34 +02:00
1 parent 3dcb7c813f
commit 6253e80a70
23 files changed
+246 -17

No files matched your search

@@ -0,0 +1,12 @@
# frozen_string_literal: true
class TestingApiSettingsController < ApplicationController
def index
authorize!(:manage, current_user.access_token)
@webhook_config =
current_account.encrypted_configs.find_or_initialize_by(key: EncryptedConfig::WEBHOOK_URL_KEY)
authorize!(:manage, @webhook_config)
end
end