Sha256: 41c7647c0a73726a9ebb7701fa01e45d728320775b5624f63f71e26ca960441e

Contents?: true

Size: 1.03 KB

Versions: 4

Compression:

Stored size: 1.03 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]
    )
  end

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

  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

4 entries across 4 versions & 1 rubygems

Version Path
curate-0.1.3 config/routes.rb
curate-0.1.2 config/routes.rb
curate-0.1.1 config/routes.rb
curate-0.1.0 config/routes.rb