Sha256: ed43931ee6dd767452298b6b4c26cc7ad1eff153414b044d1f246dc0522a565b

Contents?: true

Size: 651 Bytes

Versions: 5

Compression:

Stored size: 651 Bytes

Contents

Lookbook::Engine.routes.draw do
  if Lookbook::Engine.websocket.mountable?
    mount Lookbook::Engine.websocket.server => "/cable", :as => :cable
  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 "/previews", to: "previews#index", as: :lookbook_previews
  get "/preview/*path", to: "previews#show", as: :lookbook_preview
  get "/inspect/*path", to: "inspector#show", as: :lookbook_inspect

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

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
lookbook-1.5.5 config/routes.rb
lookbook-1.5.4 config/routes.rb
lookbook-1.5.3 config/routes.rb
lookbook-1.5.2 config/routes.rb
lookbook-1.5.1 config/routes.rb