Sha256: 5f7b5d10edad979c0abfb4dcae950555d977d0a6156f827e1a55b48f4c3fa6c9

Contents?: true

Size: 815 Bytes

Versions: 24

Compression:

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

  get "/*path", to: "application#not_found", via: :all
end

Version data entries

24 entries across 24 versions & 1 rubygems

Version Path
lookbook-2.3.4 config/routes.rb
lookbook-2.3.3 config/routes.rb
lookbook-2.3.2 config/routes.rb
lookbook-2.3.0 config/routes.rb
lookbook-2.2.2 config/routes.rb
lookbook-2.2.1 config/routes.rb
lookbook-2.2.0 config/routes.rb
lookbook-2.1.1 config/routes.rb
lookbook-2.1.0 config/routes.rb
lookbook-2.0.5 config/routes.rb
lookbook-2.0.4 config/routes.rb
lookbook-2.0.3 config/routes.rb
lookbook-2.0.2 config/routes.rb
lookbook-2.0.1 config/routes.rb
lookbook-2.0.0 config/routes.rb
lookbook-2.0.0.rc.3 config/routes.rb
lookbook-2.0.0.rc.2 config/routes.rb
lookbook-2.0.0.rc.1 config/routes.rb
lookbook-2.0.0.beta.9 config/routes.rb
lookbook-2.0.0.beta.8 config/routes.rb