Sha256: 776ccbd61f21c2464add6aa6475c14e053601204a826877a4d0a3f899c338328

Contents?: true

Size: 1.15 KB

Versions: 2

Compression:

Stored size: 1.15 KB

Contents

Rails.application.routes.draw do
  # devise_for :users

  mount_roboto

  Blacklight.add_routes(self)

  resources 'dashboard', :only=>:index do
    collection do
      get 'page/:page', :action => :index
      get 'facet/:id',  :action => :facet, :as => :dashboard_facet
      get 'related/:id',:action => :get_related_file, :as => :related_file
    end
  end
  resources :downloads, only: [:show]

  namespace :curation_concern, path: :concern do
    resources(
      :generic_files,
      only: [:new, :create],
      path: 'container/:parent_id/generic_files'
    )
    resources(
      :generic_files,
      only: [:show, :edit, :update, :destroy]
    ) do
      member do
        get :versions
        put :rollback
      end
    end
  end

  resources :terms_of_service_agreements, only: [:new, :create]
  resources :help_requests, only: [:new, :create]
  resources :classify_concerns, only: [:new, :create]
  resources :welcome, only: [:new, :index]

  match "show/:id" => "common_objects#show", via: :get, as: "common_object"
  match "show/stub/:id" => "common_objects#show_stub_information", via: :get, as: "common_object_stub_information"
  root to: 'welcome#index'

end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
curate-0.3.2 config/routes.rb
curate-0.3.1 config/routes.rb