Sha256: 632ab4554b1b7190e980145a81a697d998838b168f8af1cfbbae4eb779c88a1c

Contents?: true

Size: 548 Bytes

Versions: 1

Compression:

Stored size: 548 Bytes

Contents

Rails.application.routes.draw do
  namespace :admin do
    resources :photos do
      get 'library', on: :collection
      post 'mass_destroy', on: :collection
    end
    resources :photo_albums
    resources :photo_galleries
  end

  scope Spud::Photos.config.base_path do
    if Spud::Photos.config.galleries_enabled
      resources :photo_galleries, only: :index, path: '/' do
        resources :photo_albums, only: [:index, :show], path: '/'
      end
    else
      resources :photo_albums, only: [:index, :show], path: '/'
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
tb_photos-1.2.0 config/routes.rb