Sha256: c3b1554db66eabab487f7a9cb72450a30e3db5d1e7e146c2b079a3fef7d65a69

Contents?: true

Size: 1.1 KB

Versions: 21

Compression:

Stored size: 1.1 KB

Contents

Tenon::Engine.routes.draw do
  devise_for :users, class_name: "Tenon::User", module: :devise

  resources :item_versions, only: [:create, :show, :new, :index]

  resources :assets, except: [:show] do
    post 'encode_notify', :on => :collection
    get :crop, :on => :member
  end

  resources :comments, :only => [:index, :destroy] do
    get 'toggle_approved', :on => :member
  end

  resources :contacts, :only => [:index, :destroy] do
    get 'toggle_read', :on => :member
    get 'toggle_replied', :on => :member
  end

  resources :events, :except => [:show]

  resources :galleries, :except => [:show] do
    post    'reorder', :on => :collection
  end

  resources :item_assets, :except => [:index, :show]

  resources :pages do
    post    'reorder', :on => :collection
  end

  resources :post_categories

  resources :posts do
    post :reorder, :on => :collection
  end

  resource :settings, :only => [:show, :update]

  resources :tenon_callouts do
    post    'reorder', :on => :collection
  end

  resources :users, :except => [:show] do
    get 'approve', :on => :member
  end

  root :to => 'index#index'
end

Version data entries

21 entries across 21 versions & 1 rubygems

Version Path
tenon-1.0.20 config/routes.rb
tenon-1.0.19 config/routes.rb
tenon-1.0.18 config/routes.rb
tenon-1.0.17 config/routes.rb
tenon-1.0.16 config/routes.rb
tenon-1.0.15 config/routes.rb
tenon-1.0.14 config/routes.rb
tenon-1.0.13 config/routes.rb
tenon-1.0.12 config/routes.rb
tenon-1.0.11 config/routes.rb
tenon-1.0.10 config/routes.rb
tenon-1.0.9 config/routes.rb
tenon-1.0.8 config/routes.rb
tenon-1.0.7 config/routes.rb
tenon-1.0.6 config/routes.rb
tenon-1.0.5 config/routes.rb
tenon-1.0.4 config/routes.rb
tenon-1.0.3 config/routes.rb
tenon-1.0.2 config/routes.rb
tenon-1.0.1 config/routes.rb