2019-08-27 06:04:02 -04:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2019-12-03 19:23:45 -05:00
|
|
|
DiscourseSubscriptions::Engine.routes.draw do
|
2019-10-09 22:09:24 -04:00
|
|
|
# TODO: namespace this
|
2019-09-24 23:20:28 -04:00
|
|
|
scope 'admin' do
|
|
|
|
get '/' => 'admin#index'
|
2019-10-09 21:08:52 -04:00
|
|
|
end
|
|
|
|
|
|
|
|
namespace :admin do
|
2019-09-24 23:20:28 -04:00
|
|
|
resources :plans
|
2019-11-13 18:51:04 -05:00
|
|
|
resources :subscriptions, only: [:index, :destroy]
|
2019-10-15 23:15:01 -04:00
|
|
|
resources :products
|
2019-09-24 23:20:28 -04:00
|
|
|
end
|
|
|
|
|
2019-10-31 22:43:09 -04:00
|
|
|
namespace :user do
|
2019-11-04 00:37:21 -05:00
|
|
|
resources :subscriptions, only: [:index, :destroy]
|
2019-10-31 22:43:09 -04:00
|
|
|
end
|
|
|
|
|
2019-10-10 21:26:01 -04:00
|
|
|
resources :customers, only: [:create]
|
2019-10-27 23:05:58 -04:00
|
|
|
resources :invoices, only: [:index]
|
|
|
|
resources :patrons, only: [:index, :create]
|
2019-10-09 22:52:55 -04:00
|
|
|
resources :plans, only: [:index]
|
2019-11-04 00:37:21 -05:00
|
|
|
resources :products, only: [:index, :show]
|
|
|
|
resources :subscriptions, only: [:create]
|
2019-10-09 22:52:55 -04:00
|
|
|
|
2019-09-11 05:11:02 -04:00
|
|
|
get '/' => 'patrons#index'
|
2019-10-28 23:15:13 -04:00
|
|
|
get '/subscribe' => 'patrons#index'
|
2019-11-04 00:37:21 -05:00
|
|
|
get '/subscribe/:id' => 'patrons#index'
|
2017-01-30 21:28:41 -05:00
|
|
|
end
|