Sha256: ec750747870e9a7223958c353df8114ec84ac781e9efab5c6d38eb37e0947cf3

Contents?: true

Size: 312 Bytes

Versions: 2

Compression:

Stored size: 312 Bytes

Contents

Rails.application.routes.draw do
  root to: 'pages#home'

  get 'home', to: redirect('/')
  get '*page', to: 'pages#show', format: false, as: :page

  if defined? ActiveAdmin
    namespace :admin do
      resources :pages do
        collection do
          post :rebuild
        end
      end
    end
  end

end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
petrie-0.1.1 config/routes.rb
petrie-0.1.0 config/routes.rb