discourse-subscriptions/config/routes.rb

24 lines
539 B
Ruby
Raw Normal View History

2019-08-27 06:04:02 -04:00
# frozen_string_literal: true
2019-09-11 05:11:02 -04:00
DiscoursePatrons::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-10-09 22:09:24 -04:00
resources :subscriptions, only: [:index]
2019-10-15 23:15:01 -04:00
resources :products
2019-09-24 23:20:28 -04:00
end
resources :customers, only: [:create]
2019-10-13 20:47:49 -04:00
resources :subscriptions, only: [:create]
2019-10-09 22:52:55 -04:00
resources :plans, only: [:index]
2019-10-24 17:18:16 -04:00
resources :products, only: [:index]
2019-10-09 22:52:55 -04:00
resources :patrons, only: [:index, :create]
2019-09-11 05:11:02 -04:00
get '/' => 'patrons#index'
2019-09-14 03:28:58 -04:00
get '/:pid' => 'patrons#show'
2017-01-30 21:28:41 -05:00
end