Sha256: 42daf03375e45fc0c9330c7eade9c78fc9098e85f705572fa7e033a66298f718

Contents?: true

Size: 1.36 KB

Versions: 8

Compression:

Stored size: 1.36 KB

Contents

Rails.application.routes.draw do

  match "/login", to: UcbRailsUser::SessionsController.action(:new),
    as: "login", via: [:get]
  match "/logout", to: UcbRailsUser::SessionsController.action(:destroy),
    as: "logout", via: [:all]
  match "/auth/:omniauth_provider/callback", to: UcbRailsUser::SessionsController.action(:create),
    via: [:get]
  match "/auth/failure", to: UcbRailsUser::SessionsController.action(:failure), via: [:get]
  match "/not_authorized", to: UcbRailsUser::SessionsController.action(:not_authorized),
    as: "not_authorized", via: [:get]

  match "/admin/users/toggle_superuser", to: UcbRailsUser::UsersController.action(:toggle_superuser),
    as: "admin_toggle_superuser", via: [:get]

  match "/admin/users/search", to: UcbRailsUser::UsersController.action(:search),
    as: "admin_user_search", via: [:get]
  match "/admin/users/impersonate_search", to: UcbRailsUser::UsersController.action(:impersonate_search),
    as: "admin_user_impersonate_search", via: [:get]
  resources :users, controller: "ucb_rails_user/users", path: "admin/users", as: :admin_users

  resources :impersonations, controller: "ucb_rails_user/impersonations", path: "admin/impersonations", as: :admin_impersonations
  match "/admin/stop_impersonation", to: UcbRailsUser::ImpersonationsController.action(:stop_impersonation),
    as: :admin_stop_impersonation, via: [:get]

end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
ucb_rails_user-4.0.3 config/routes.rb
ucb_rails_user-4.0.2 config/routes.rb
ucb_rails_user-4.0.1 config/routes.rb
ucb_rails_user-4.0.0 config/routes.rb
ucb_rails_user-3.0.2 config/routes.rb
ucb_rails_user-4.0.0.beta1 config/routes.rb
ucb_rails_user-3.0.1 config/routes.rb
ucb_rails_user-3.0.0 config/routes.rb