Sha256: 19a3027887233eb297599c4211de7483788e33fd4b5ecb0db679a3a70ee363f5

Contents?: true

Size: 759 Bytes

Versions: 2

Compression:

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

  if Lookbook::Engine.preview_embeds_allowed?
    get "/embed", to: "embeds#lookup", as: :lookbook_embed_lookup
    get "/embed/*path", to: "embeds#show", as: :lookbook_embed
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
lookbook-2.0.0.beta.3 config/routes.rb
lookbook-2.0.0.beta.2 config/routes.rb