forked from fixin.me/fixin.me
20 lines
408 B
Ruby
20 lines
408 B
Ruby
Rails.application.routes.draw do
|
|
devise_for :users, path: '', path_names: {registration: 'profile'},
|
|
controllers: {registrations: :registrations}
|
|
|
|
resources :units, except: [:show]
|
|
|
|
resources :users, only: [:index, :show, :update] do
|
|
member do
|
|
post :disguise
|
|
end
|
|
collection do
|
|
post :revert
|
|
end
|
|
end
|
|
|
|
devise_scope :user do
|
|
root to: "devise/sessions#new"
|
|
end
|
|
end
|