Class: ActionDispatch::Routing::Mapper
- Inherits:
-
Object
- Object
- ActionDispatch::Routing::Mapper
- Defined in:
- lib/curation_concerns/rails/routes.rb
Instance Method Summary collapse
- #curation_concerns_basic_routes { ... } ⇒ Object
-
#curation_concerns_collections ⇒ Object
Adds routes for doing paginated searches within a collection’s contents.
-
#curation_concerns_embargo_management ⇒ Object
kmr added :show to make tests pass.
Instance Method Details
#curation_concerns_basic_routes { ... } ⇒ Object
8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 |
# File 'lib/curation_concerns/rails/routes.rb', line 8 def curation_concerns_basic_routes(&block) resources :downloads, only: :show resources :upload_sets, only: [:edit, :update] namespace :curation_concerns, path: :concern do namespaced_resources 'workflow_actions', only: [:update] concerns_to_route.each do |curation_concern_name| namespaced_resources curation_concern_name, except: [:index], &block namespaced_resources curation_concern_name, only: [] do member do get :file_manager get :inspect_work end end end resources :parent, only: [] do concerns_to_route.each do |curation_concern_name| namespaced_resources curation_concern_name, except: [:index], &block end end resources :parent, only: [] do resources :file_sets, only: [:show] end resources :permissions, only: [] do member do get :confirm post :copy end end resources :file_sets, only: [:new, :create], path: 'container/:parent_id/file_sets' resources :file_sets, only: [:show, :edit, :update, :destroy] do member do get :versions put :rollback end end end end |
#curation_concerns_collections ⇒ Object
Adds routes for doing paginated searches within a collection’s contents
53 54 55 56 57 58 59 60 61 62 63 64 |
# File 'lib/curation_concerns/rails/routes.rb', line 53 def curation_concerns_collections resources :collections do member do get 'page/:page', action: :index get 'facet/:id', action: :facet, as: :dashboard_facet end collection do put '', action: :update put :remove_member end end end |
#curation_concerns_embargo_management ⇒ Object
kmr added :show to make tests pass
67 68 69 70 71 72 73 74 75 76 77 78 |
# File 'lib/curation_concerns/rails/routes.rb', line 67 def resources :embargoes, only: [:index, :edit, :destroy] do collection do patch :update end end resources :leases, only: [:index, :edit, :destroy] do collection do patch :update end end end |