mirror of
https://github.com/astuto/astuto.git
synced 2025-12-15 03:07:52 +01:00
Add billing (#329)
This commit is contained in:
committed by
GitHub
parent
fc36c967af
commit
bea146e612
@@ -10,6 +10,14 @@ Rails.application.routes.draw do
|
||||
|
||||
resource :tenants, only: [:create]
|
||||
end
|
||||
|
||||
constraints subdomain: 'billing' do
|
||||
get '/billing', to: 'billing#index'
|
||||
get '/billing/return', to: 'billing#return'
|
||||
post '/create_checkout_session', to: 'billing#create_checkout_session'
|
||||
get '/session_status', to: 'billing#session_status'
|
||||
post '/webhook', to: 'billing#webhook'
|
||||
end
|
||||
end
|
||||
|
||||
constraints subdomain: /.*/ do
|
||||
@@ -19,6 +27,8 @@ Rails.application.routes.draw do
|
||||
get '/pending-tenant', to: 'static_pages#pending_tenant'
|
||||
get '/blocked-tenant', to: 'static_pages#blocked_tenant'
|
||||
|
||||
get '/request_billing_page', to: 'billing#request_billing_page'
|
||||
|
||||
devise_for :users, :controllers => {
|
||||
:registrations => 'registrations',
|
||||
:sessions => 'sessions'
|
||||
|
||||
Reference in New Issue
Block a user