discourse-subscriptions/config/routes.rb

19 lines
334 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-09-24 23:20:28 -04:00
scope 'admin' do
get '/' => 'admin#index'
resources :subscriptions, only: [:index]
2019-10-09 21:08:52 -04:00
end
namespace :admin do
2019-09-24 23:20:28 -04:00
resources :plans
end
2019-09-11 05:11:02 -04:00
get '/' => 'patrons#index'
2019-09-14 03:28:58 -04:00
get '/:pid' => 'patrons#show'
2019-09-24 23:20:28 -04:00
2019-09-11 05:11:02 -04:00
resources :patrons, only: [:index, :create]
2017-01-30 21:28:41 -05:00
end