mirror of
https://github.com/discourse/discourse-subscriptions.git
synced 2025-02-10 05:24:56 +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
|