Sha256: e7724f26b9568e546954c771da8f998c2a7beb28eef59808081daa4ec88f7120

Contents?: true

Size: 296 Bytes

Versions: 3

Compression:

Stored size: 296 Bytes

Contents

Lookbook::Engine.routes.draw do
  if Lookbook.config.auto_refresh
    mount Lookbook::Engine.websocket => Lookbook::Engine.cable.mount_path
  end

  root to: "browser#index", as: :home

  get "/preview/*path", to: "browser#preview", as: :preview
  get "/*path", to: "browser#show", as: :show
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
lookbook-0.2.4 config/routes.rb
lookbook-0.2.3 config/routes.rb
lookbook-0.2.2 config/routes.rb