Sha256: 2c764b360b97523dd0117a5dd14b4a831343ccee0d783c6e1605a5043954391b

Contents?: true

Size: 550 Bytes

Versions: 9

Compression:

Stored size: 550 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

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

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

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
lookbook-0.9.8 config/routes.rb
lookbook-0.9.7 config/routes.rb
lookbook-0.9.6 config/routes.rb
lookbook-0.9.5 config/routes.rb
lookbook-0.9.4 config/routes.rb
lookbook-0.9.3 config/routes.rb
lookbook-0.9.2 config/routes.rb
lookbook-0.9.1 config/routes.rb
lookbook-0.9.0 config/routes.rb