2019-08-27 20:04:02 +10:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2019-09-11 19:11:02 +10:00
|
|
|
DiscoursePatrons::Engine.routes.draw do
|
2019-10-10 13:09:24 +11:00
|
|
|
# TODO: namespace this
|
2019-09-25 13:20:28 +10:00
|
|
|
scope 'admin' do
|
|
|
|
get '/' => 'admin#index'
|
2019-10-10 12:08:52 +11:00
|
|
|
end
|
|
|
|
|
|
|
|
namespace :admin do
|
2019-09-25 13:20:28 +10:00
|
|
|
resources :plans
|
2019-10-10 13:09:24 +11:00
|
|
|
resources :subscriptions, only: [:index]
|
2019-09-25 13:20:28 +10:00
|
|
|
end
|
|
|
|
|
2019-10-10 13:52:55 +11:00
|
|
|
resources :plans, only: [:index]
|
|
|
|
resources :patrons, only: [:index, :create]
|
|
|
|
|
2019-09-11 19:11:02 +10:00
|
|
|
get '/' => 'patrons#index'
|
2019-09-14 17:28:58 +10:00
|
|
|
get '/:pid' => 'patrons#show'
|
2017-01-31 13:28:41 +11:00
|
|
|
end
|