2024-02-02 09:05:04 -06:00
|
|
|
Rails.application.routes.draw do
|
2024-10-24 17:28:29 -04:00
|
|
|
mount GoodJob::Engine => "good_job"
|
|
|
|
|
2024-10-03 14:42:22 -04:00
|
|
|
get "changelog", to: "pages#changelog"
|
|
|
|
get "feedback", to: "pages#feedback"
|
2024-10-09 13:17:58 -05:00
|
|
|
get "early-access", to: "pages#early_access"
|
2024-04-18 07:56:51 -04:00
|
|
|
|
2024-10-23 11:20:55 -04:00
|
|
|
resource :registration, only: %i[new create]
|
2024-10-03 14:42:22 -04:00
|
|
|
resources :sessions, only: %i[new create destroy]
|
2024-10-23 11:20:55 -04:00
|
|
|
resource :password_reset, only: %i[new create edit update]
|
|
|
|
resource :password, only: %i[edit update]
|
|
|
|
|
|
|
|
resources :users, only: %i[update destroy]
|
|
|
|
|
|
|
|
resource :onboarding, only: :show do
|
|
|
|
collection do
|
|
|
|
get :profile
|
|
|
|
get :preferences
|
|
|
|
end
|
|
|
|
end
|
2024-04-13 09:28:45 -04:00
|
|
|
|
2024-04-18 07:56:51 -04:00
|
|
|
namespace :settings do
|
2024-10-23 11:20:55 -04:00
|
|
|
resource :profile, only: :show
|
|
|
|
resource :preferences, only: :show
|
2024-10-02 12:07:56 -04:00
|
|
|
resource :hosting, only: %i[show update]
|
2024-10-08 14:37:47 -05:00
|
|
|
resource :billing, only: :show
|
2024-03-28 13:23:54 -04:00
|
|
|
end
|
|
|
|
|
2024-10-24 11:02:27 -04:00
|
|
|
resource :subscription, only: %i[new show] do
|
|
|
|
get :success, on: :collection
|
|
|
|
end
|
2024-10-08 14:37:47 -05:00
|
|
|
|
2024-10-24 11:02:27 -04:00
|
|
|
resources :tags, except: :show do
|
2024-08-23 10:06:24 -04:00
|
|
|
resources :deletions, only: %i[new create], module: :tag
|
2024-06-20 13:32:44 -04:00
|
|
|
end
|
|
|
|
|
|
|
|
namespace :category do
|
|
|
|
resource :dropdown, only: :show
|
2024-05-23 08:09:33 -04:00
|
|
|
end
|
|
|
|
|
2024-06-20 08:15:09 -04:00
|
|
|
resources :categories do
|
2024-08-23 10:06:24 -04:00
|
|
|
resources :deletions, only: %i[new create], module: :category
|
2024-06-20 08:15:09 -04:00
|
|
|
end
|
|
|
|
|
2024-08-23 10:06:24 -04:00
|
|
|
resources :merchants, only: %i[index new create edit update destroy]
|
2024-06-20 08:38:59 -04:00
|
|
|
|
2024-06-20 13:32:44 -04:00
|
|
|
namespace :account do
|
2024-08-23 10:06:24 -04:00
|
|
|
resources :transfers, only: %i[new create destroy]
|
2024-06-20 13:32:44 -04:00
|
|
|
end
|
2024-06-19 06:52:08 -04:00
|
|
|
|
2024-10-01 10:47:59 -04:00
|
|
|
resources :imports, only: %i[index new show create destroy] do
|
|
|
|
post :publish, on: :member
|
|
|
|
|
|
|
|
resource :upload, only: %i[show update], module: :import
|
|
|
|
resource :configuration, only: %i[show update], module: :import
|
|
|
|
resource :clean, only: :show, module: :import
|
|
|
|
resource :confirm, only: :show, module: :import
|
|
|
|
|
|
|
|
resources :rows, only: %i[show update], module: :import
|
|
|
|
resources :mappings, only: :update, module: :import
|
|
|
|
end
|
|
|
|
|
2024-06-20 13:32:44 -04:00
|
|
|
resources :accounts do
|
2024-06-20 07:26:25 -04:00
|
|
|
collection do
|
|
|
|
get :summary
|
|
|
|
get :list
|
2024-07-05 13:36:18 +02:00
|
|
|
post :sync_all
|
2024-06-20 07:26:25 -04:00
|
|
|
end
|
|
|
|
|
|
|
|
member do
|
|
|
|
post :sync
|
|
|
|
end
|
|
|
|
|
2024-06-21 16:23:28 -04:00
|
|
|
scope module: :account do
|
2024-10-09 14:59:18 -04:00
|
|
|
resources :holdings, only: %i[index new show destroy]
|
2024-08-02 17:09:25 -04:00
|
|
|
resources :cashes, only: :index
|
2024-07-25 16:46:04 -04:00
|
|
|
|
2024-08-23 10:06:24 -04:00
|
|
|
resources :transactions, only: %i[index update]
|
|
|
|
resources :valuations, only: %i[index new create]
|
2024-10-28 15:49:19 -04:00
|
|
|
resources :trades, only: %i[index new create update] do
|
|
|
|
get :securities, on: :collection
|
|
|
|
end
|
2024-08-09 11:22:57 -04:00
|
|
|
|
2024-08-23 10:06:24 -04:00
|
|
|
resources :entries, only: %i[edit update show destroy]
|
2024-06-24 11:58:39 -04:00
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2024-08-23 10:06:24 -04:00
|
|
|
resources :properties, only: %i[create update]
|
|
|
|
resources :vehicles, only: %i[create update]
|
2024-10-08 17:16:37 -04:00
|
|
|
resources :credit_cards, only: %i[create update]
|
|
|
|
resources :loans, only: %i[create update]
|
2024-08-23 08:47:08 -04:00
|
|
|
|
2024-08-23 10:06:24 -04:00
|
|
|
resources :transactions, only: %i[index new create] do
|
2024-06-24 11:58:39 -04:00
|
|
|
collection do
|
|
|
|
post "bulk_delete"
|
|
|
|
get "bulk_edit"
|
|
|
|
post "bulk_update"
|
|
|
|
post "mark_transfers"
|
|
|
|
post "unmark_transfers"
|
2024-06-21 16:23:28 -04:00
|
|
|
end
|
2024-02-20 09:07:55 -05:00
|
|
|
end
|
2024-02-02 09:05:04 -06:00
|
|
|
|
2024-09-11 17:24:01 -04:00
|
|
|
resources :institutions, except: %i[index show] do
|
|
|
|
post :sync, on: :member
|
|
|
|
end
|
2024-09-11 19:04:39 +02:00
|
|
|
resources :invite_codes, only: %i[index create]
|
2024-06-13 14:37:27 -04:00
|
|
|
|
2024-08-16 12:13:48 -04:00
|
|
|
resources :issues, only: :show
|
|
|
|
|
|
|
|
namespace :issue do
|
|
|
|
resources :exchange_rate_provider_missings, only: :update
|
|
|
|
end
|
|
|
|
|
2024-04-13 09:28:45 -04:00
|
|
|
# For managing self-hosted upgrades and release notifications
|
|
|
|
resources :upgrades, only: [] do
|
|
|
|
member do
|
|
|
|
post :acknowledge
|
|
|
|
post :deploy
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2024-04-20 14:07:06 +02:00
|
|
|
resources :currencies, only: %i[show]
|
|
|
|
|
2024-10-18 11:26:58 -05:00
|
|
|
resources :impersonation_sessions, only: [ :create ] do
|
|
|
|
post :join, on: :collection
|
|
|
|
delete :leave, on: :collection
|
|
|
|
|
|
|
|
member do
|
|
|
|
put :approve
|
|
|
|
put :reject
|
|
|
|
put :complete
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2024-10-08 14:37:47 -05:00
|
|
|
# Stripe webhook endpoint
|
|
|
|
post "webhooks/stripe", to: "webhooks#stripe"
|
|
|
|
|
2024-02-02 09:05:04 -06:00
|
|
|
# Reveal health status on /up that returns 200 if the app boots with no exceptions, otherwise 500.
|
|
|
|
# Can be used by load balancers and uptime monitors to verify that the app is live.
|
|
|
|
get "up" => "rails/health#show", as: :rails_health_check
|
|
|
|
|
|
|
|
# Render dynamic PWA files from app/views/pwa/*
|
|
|
|
get "service-worker" => "rails/pwa#service_worker", as: :pwa_service_worker
|
|
|
|
get "manifest" => "rails/pwa#manifest", as: :pwa_manifest
|
|
|
|
|
|
|
|
# Defines the root path route ("/")
|
|
|
|
root "pages#dashboard"
|
|
|
|
end
|