Sha256: bda37da3035a36c2ad915d00c342085061bac03f61d6cb33dc10a414ab5e82d4

Contents?: true

Size: 526 Bytes

Versions: 6

Compression:

Stored size: 526 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\/[^\/]+/

end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
typus-1.0.0.pre8 config/routes.rb
typus-1.0.0.pre7 config/routes.rb
typus-1.0.0.pre6 config/routes.rb
typus-1.0.0.pre5 config/routes.rb
typus-1.0.0.pre4 config/routes.rb
typus-1.0.0.pre3 config/routes.rb