Sha256: f6559336ac9ec4424e203f44b407a6770e1849d2005bb7eaf5286184223422d5

Contents?: true

Size: 536 Bytes

Versions: 2

Compression:

Stored size: 536 Bytes

Contents

Rails.application.routes.draw do

  resource :admin, :only => [:show], :controller => :admin

  namespace :admin do

    resource :dashboard, :only => [:show], :controller => :dashboard

    if Typus.authentication == :session
      resource :session, :only => [:new, :create, :destroy], :controller => :session
      resources :account, :only => [:new, :create, :show, :forgot_password] do
        collection { get :forgot_password }
      end
    end

  end

  match ':controller(/:action(/:id))', :controller => /admin\/[^\/]+/

end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
typus-1.0.0.pre2 config/routes.rb
typus-1.0.0.pre config/routes.rb