Sha256: 5555a5b890c14bb2d8bb771e7e31fa0e8890e5acce7ed3c6bfb4fc6232b2d9b3

Contents?: true

Size: 655 Bytes

Versions: 2

Compression:

Stored size: 655 Bytes

Contents

FcrepoAdmin::Engine.routes.draw do

  datastreams_resources = [:index, :show]
  datastreams_resources += [:edit, :update] unless FcrepoAdmin.read_only

  scope :module => "fcrepo_admin" do
    resources :objects, :only => :show do
      member do
        get 'audit_trail'
        get 'solr'
        get 'permissions'
      end
      resources :associations, :only => [:index, :show]
      resources :datastreams, :only => datastreams_resources do
        member do
          get 'content'
          get 'upload' unless FcrepoAdmin.read_only
          get 'download' => 'download#show'
          get 'history'
        end
      end
    end
  end
    
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
fcrepo_admin-0.6.1 config/routes.rb
fcrepo_admin-0.6.0 config/routes.rb