mirror of
https://github.com/discourse/discourse-subscriptions.git
synced 2025-11-15 20:48:36 +00:00
15 lines
271 B
Ruby
15 lines
271 B
Ruby
|
|
# frozen_string_literal: true
|
||
|
|
|
||
|
|
module DiscoursePatrons
|
||
|
|
class PlansController < ::ApplicationController
|
||
|
|
include DiscoursePatrons::Stripe
|
||
|
|
|
||
|
|
before_action :set_api_key
|
||
|
|
|
||
|
|
def index
|
||
|
|
plans = ::Stripe::Plan.list
|
||
|
|
render json: plans.data
|
||
|
|
end
|
||
|
|
end
|
||
|
|
end
|