fixin.me/config/routes.rb
cryptogopher f9bd81c6ab Implement Unit defaults export
Disable import_all until implemented
2024-11-26 02:31:25 +01:00

28 lines
779 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 { post :rebase }
end
namespace :default do
resources :units, only: [:index, :destroy] do
member { post :import, :export }
#collection { post :import_all }
end
end
resources :users, only: [:index, :show, :update] do
member { get :disguise }
collection { get :revert }
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