Sha256: f8ad6d1733281b057fcfb0278df00cce750957bf9cbb4957252de2678a704bab

Contents?: true

Size: 581 Bytes

Versions: 12

Compression:

Stored size: 581 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: :lookbook_home

  get "/#{Lookbook.config.page_route}", to: "pages#index", as: :lookbook_page_index
  get "/#{Lookbook.config.page_route}/*path", to: "pages#show", as: :lookbook_page

  get "/preview/*path", to: "previews#preview", as: :lookbook_preview
  get "/inspect/*path", to: "previews#show", as: :lookbook_inspect

  get "/*path", to: "previews#show_legacy", as: :lookbook_inspect_legacy
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
lookbook-1.0.1 config/routes.rb
lookbook-1.0.0 config/routes.rb
lookbook-1.0.0.rc.3 config/routes.rb
lookbook-1.0.0.rc.2 config/routes.rb
lookbook-1.0.0.rc.1 config/routes.rb
lookbook-1.0.0.beta.8 config/routes.rb
lookbook-1.0.0.beta.7 config/routes.rb
lookbook-1.0.0.beta.6 config/routes.rb
lookbook-1.0.0.beta.5 config/routes.rb
lookbook-1.0.0.beta.4 config/routes.rb
lookbook-1.0.0.beta.3 config/routes.rb
lookbook-1.0.0.beta.2 config/routes.rb