feat: add github auth

This commit is contained in:
Muhsin Keloth
2025-06-12 11:55:57 +05:30
parent d52f4267ba
commit cf73ba195e
17 changed files with 303 additions and 1 deletions
@@ -0,0 +1,13 @@
class Api::V1::Accounts::Integrations::GithubController < Api::V1::Accounts::BaseController
before_action :check_authorization
def show
@github_integration = Current.account.hooks.find_by(app_id: 'github')
end
private
def check_authorization
authorize ::Webhook, :show?
end
end