Sha256: b3db15cbe3cb83ff37163e550e54e60dad50eebc91b992df8f1019af5690b906

Contents?: true

Size: 617 Bytes

Versions: 5

Compression:

Stored size: 617 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 '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'
          get 'history'
        end
      end
    end
  end
    
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
fcrepo_admin-0.5.4 config/routes.rb
fcrepo_admin-0.5.3 config/routes.rb
fcrepo_admin-0.5.2 config/routes.rb
fcrepo_admin-0.5.1 config/routes.rb
fcrepo_admin-0.5.0 config/routes.rb