mirror of
https://github.com/lingble/chatwoot.git
synced 2025-10-29 10:12:34 +00:00
* Chore: Code Cleanup in API controllers * Remove unnecessary scoping for accounts controller
14 lines
314 B
Ruby
14 lines
314 B
Ruby
class Api::V1::Accounts::SubscriptionsController < Api::V1::Accounts::BaseController
|
|
skip_before_action :check_subscription
|
|
|
|
before_action :check_billing_enabled
|
|
|
|
def index
|
|
render json: Current.account.subscription_data
|
|
end
|
|
|
|
def status
|
|
render json: Current.account.subscription.summary
|
|
end
|
|
end
|