fixin.me/config/routes.rb
cryptogopher 965cb76f1d Generate Units::Defaults controller
bin/rails g controller Units/Defaults index
2024-05-04 01:53:57 +02:00

28 lines
543 B
Ruby

Rails.application.routes.draw do
devise_for :users, path: '', path_names: {registration: 'profile'},
controllers: {registrations: :registrations}
resources :units, except: [:show], path_names: {new: '(/:id)/new'} do
member do
post :rebase
end
end
namespace :units do
get 'defaults/index'
end
resources :users, only: [:index, :show, :update] do
member do
get :disguise
end
collection do
get :revert
end
end
devise_scope :user do
root to: "devise/sessions#new"
end
end