Add default Units actions

This commit is contained in:
cryptogopher 2024-11-10 17:34:43 +01:00
parent 817b1a4376
commit aebbe11bef

View File

@ -3,22 +3,19 @@ Rails.application.routes.draw do
controllers: {registrations: :registrations} controllers: {registrations: :registrations}
resources :units, except: [:show], path_names: {new: '(/:id)/new'} do resources :units, except: [:show], path_names: {new: '(/:id)/new'} do
member do member { post :rebase }
post :rebase
end
end end
namespace :default do namespace :default do
resources :units, only: :index resources :units, only: [:index, :destroy] do
member { post :import, :export }
collection { post :import_all }
end
end end
resources :users, only: [:index, :show, :update] do resources :users, only: [:index, :show, :update] do
member do member { get :disguise }
get :disguise collection { get :revert }
end
collection do
get :revert
end
end end
devise_scope :user do devise_scope :user do