fixin.me/config/routes.rb
cryptogopher 537cd18336 Change namespace for defaults controllers
To allow proper path prefix for view partials when using
config.action_view.prefix_partial_path_with_controller_namespace
2024-11-09 21:50:50 +01:00

31 lines
717 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 :default do
resources :units, only: :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
direct(:source_code) { "https://gitea.michalczyk.pro/fixin.me/fixin.me" }
direct(:issue_tracker) { "https://gitea.michalczyk.pro/fixin.me/fixin.me/issues" }
end