Sha256: c5940882d01992f3d426d91f130a3733d18a5f1aefdc7d470902bc5aaa3af524

Contents?: true

Size: 343 Bytes

Versions: 5

Compression:

Stored size: 343 Bytes

Contents

MountainView::Engine.routes.draw do
  root to: "styleguide#index"

  def extra_routes
    get "extra_pages/:page",
        to: "extra_pages#show",
        as: "extra_pages"
  end

  resources :styleguide, only: [:index, :show], path: MountainView.configuration.styleguide_path
  extra_routes if MountainView.configuration.extra_pages.any?
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
mountain_view-0.13.0 config/routes.rb
mountain_view-0.12.3 config/routes.rb
mountain_view-0.12.2 config/routes.rb
mountain_view-0.12.1 config/routes.rb
mountain_view-0.12.0 config/routes.rb