2020-02-17 02:21:45 +00:00
|
|
|
class Api::V1::SubscriptionsController < Api::BaseController
|
2019-08-14 09:48:44 +00:00
|
|
|
skip_before_action :check_subscription
|
|
|
|
|
2020-02-17 02:21:45 +00:00
|
|
|
before_action :check_billing_enabled
|
|
|
|
|
2019-08-14 09:48:44 +00:00
|
|
|
def index
|
|
|
|
render json: current_account.subscription_data
|
|
|
|
end
|
|
|
|
|
|
|
|
def status
|
|
|
|
render json: current_account.subscription.summary
|
|
|
|
end
|
|
|
|
end
|