Sha256: 235f5920486c18cf80a2e6b19bea83ef8bad2a5ef527b9df84d8da8637f5d9d0

Contents?: true

Size: 1.19 KB

Versions: 13

Compression:

Stored size: 1.19 KB

Contents

Rails.application.routes.draw do

  namespace :admin do

    get 'login' => 'user_sessions#new', :as => 'login'
    get 'badges' => 'dashboard#badges'

    resources :password_resets, :only => [:index, :create, :show, :update], :path => 'login/forgot'

    get 'settings' => 'settings#edit', :as => 'settings'
    put 'settings' => 'settings#update'
    put 'change_sort' => 'dashboard#change_sort'

    root :to => "dashboard#index", as: :root
    resources :users do
      get 'export', :on => :collection
    end
    resources :roles

    get 'setup' => 'setup#new'
    post 'setup' => 'setup#create'
  end

  # Non-admin login paths
  get 'login' => 'user_sessions#new', :as => 'login'
  post 'login' => 'user_sessions#create'
  match 'logout' => 'user_sessions#destroy', :as => 'logout', :via => [:get, :post]

  get 'login/change_password' => 'user_sessions#change_password'
  post 'login/change_password' => 'user_sessions#set_change_password'

  resources :password_resets, :only => [:index, :create, :show, :update], :path => 'login/forgot'

  get 'spud/admin' => 'admin/user_sessions#legacy_redirect'
  get 'tb_core/not_found' => 'tb_core/application#not_found', as: 'not_found' unless Rails.env.production?

end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
tb_core-1.5.4 config/routes.rb
tb_core-1.5.3 config/routes.rb
tb_core-1.5.2 config/routes.rb
tb_core-1.5.1 config/routes.rb
tb_core-1.4.3.1 config/routes.rb
tb_core-1.5.0 config/routes.rb
tb_core-1.4.8 config/routes.rb
tb_core-1.4.7 config/routes.rb
tb_core-1.4.6 config/routes.rb
tb_core-1.4.5 config/routes.rb
tb_core-1.4.4 config/routes.rb
tb_core-1.4.3 config/routes.rb
tb_core-1.4.2 config/routes.rb