Sha256: 802936025aae5407f76831b5e135fccb6501bfc789e6bdb6d24a670cf57393fb

Contents?: true

Size: 973 Bytes

Versions: 21

Compression:

Stored size: 973 Bytes

Contents

Lines::Engine.routes.draw do

  get 'password_resets/new'

  get 'password_resets/edit'

  get 'login', to: 'sessions#new', as: 'login'
  get 'logout', to: 'sessions#destroy', as: 'logout'
  get 'tags/:tag', to: 'articles#index', as: :tag

  resources :sessions
  resources :password_resets,     only: [:new, :create, :edit, :update]

  resources :articles, only: [:index, :show] do
    get 'page/:page', action: :index, on: :collection
  end

  resources :short_articles, only: [:index, :show], controller: :articles do
    get 'page/:page', action: :index, on: :collection
  end

  # Admin namespace
  namespace :admin do
    resources :articles do
      get :autocomplete_tag_name, on: :collection
      post :toggle_publish#, on: :member
      post :toggle_feature#, on: :member
    end
    resources :authors
    resources :pictures, only: [:create, :update, :destroy]
    resources :users
    root :to => 'articles#index'
  end
  
  root :to => 'articles#index'

end

Version data entries

21 entries across 21 versions & 2 rubygems

Version Path
jeygeethanmedia-inkpen-1.2.6.2 config/routes.rb
jeygeethanmedia-inkpen-1.2.6.1 config/routes.rb
lines-engine-1.2.6.1 config/routes.rb
lines-engine-1.2.6 config/routes.rb
lines-engine-1.2.5 config/routes.rb
lines-engine-1.2.3 config/routes.rb
lines-engine-1.2.2 config/routes.rb
lines-engine-1.2.1.1 config/routes.rb
lines-engine-1.2.1 config/routes.rb
lines-engine-1.2 config/routes.rb
lines-engine-1.1.5.3 config/routes.rb
lines-engine-1.1.5.2 config/routes.rb
lines-engine-1.1.5.1 config/routes.rb
lines-engine-1.1.5 config/routes.rb
lines-engine-1.1.4 config/routes.rb
lines-engine-1.1.3 config/routes.rb
lines-engine-1.1.2 config/routes.rb
lines-engine-1.1.1 config/routes.rb
lines-engine-1.1.0 config/routes.rb
lines-engine-1.0.0 config/routes.rb