Sha256: 1236811e1ac6f3327927b0ac17e8a7efb368669dff9474eb0d280958f9d05c22

Contents?: true

Size: 1.24 KB

Versions: 16

Compression:

Stored size: 1.24 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, path: 'asset-library', 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 :redirects do
    post    'reorder', :on => :collection
    get 'toggle_active', :on => :member
  end

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

  root :to => 'index#index'
end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
tenon-1.0.57 config/routes.rb
tenon-1.0.56 config/routes.rb
tenon-1.0.55 config/routes.rb
tenon-1.0.54 config/routes.rb
tenon-1.0.53 config/routes.rb
tenon-1.0.52 config/routes.rb
tenon-1.0.51 config/routes.rb
tenon-1.0.50 config/routes.rb
tenon-1.0.49 config/routes.rb
tenon-1.0.48 config/routes.rb
tenon-1.0.47 config/routes.rb
tenon-1.0.46 config/routes.rb
tenon-1.0.45 config/routes.rb
tenon-1.0.44 config/routes.rb
tenon-1.0.43 config/routes.rb
tenon-1.0.42 config/routes.rb