Sha256: 224015f814ad9b21224a200da13d0f65e6d7ff716d612dec10941a8874c57be4

Contents?: true

Size: 502 Bytes

Versions: 7

Compression:

Stored size: 502 Bytes

Contents

Lookbook::Engine.routes.draw do
  if Lookbook.config.auto_refresh
    mount Lookbook::Engine.websocket => Lookbook.config.cable_mount_path
  end

  root to: "application#index", as: :home

  if Lookbook::Features.enabled?(:pages)
    get "/#{Lookbook.config.page_route}", to: "pages#index", as: :page_index
    get "/#{Lookbook.config.page_route}/*path", to: "pages#show", as: :page
  end

  get "/preview/*path", to: "previews#preview", as: :preview
  get "/*path", to: "previews#show", as: :show
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
lookbook-0.8.3 config/routes.rb
lookbook-0.8.2 config/routes.rb
lookbook-0.8.1 config/routes.rb
lookbook-0.8.0 config/routes.rb
lookbook-0.8.0.beta.0 config/routes.rb
lookbook-0.7.4 config/routes.rb
lookbook-0.7.3 config/routes.rb