mirror of
https://github.com/discourse/discourse-subscriptions.git
synced 2025-03-09 03:02:38 +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
|