Sha256: 9fcc81e718a9dac576cdb017e56fb900c76baf4710bc77e2ca4cef75b90f166f

Contents?: true

Size: 600 Bytes

Versions: 8

Compression:

Stored size: 600 Bytes

Contents

Rails.application.routes.draw do

  match "/admin" => redirect("/admin/dashboard")

  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\/[^\/]+/
  match ':controller(/:action(.:format))', :controller => /admin\/[^\/]+/

end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
typus-3.0.2 config/routes.rb
typus-3.0.1 config/routes.rb
typus-3.0.0 config/routes.rb
typus-1.0.0.pre13 config/routes.rb
typus-1.0.0.pre12 config/routes.rb
typus-1.0.0.pre11 config/routes.rb
typus-1.0.0.pre10 config/routes.rb
typus-1.0.0.pre9 config/routes.rb