2024-02-02 09:05:04 -06:00
|
|
|
Rails.application.routes.draw do
|
2024-02-10 16:18:56 -06:00
|
|
|
mount GoodJob::Engine => "jobs"
|
|
|
|
|
2024-04-18 07:56:51 -04:00
|
|
|
get "changelog" => "pages#changelog", as: :changelog
|
|
|
|
get "feedback" => "pages#feedback", as: :feedback
|
|
|
|
get "invites" => "pages#invites", as: :invites
|
|
|
|
|
2024-02-02 09:05:04 -06:00
|
|
|
resource :registration
|
|
|
|
resource :session
|
|
|
|
resource :password_reset
|
|
|
|
resource :password
|
2024-04-13 09:28:45 -04:00
|
|
|
|
2024-04-18 07:56:51 -04:00
|
|
|
namespace :settings do
|
2024-04-30 16:40:31 +01:00
|
|
|
resource :profile, only: %i[show update destroy]
|
2024-04-18 07:56:51 -04:00
|
|
|
resource :preferences, only: %i[show update]
|
|
|
|
resource :notifications, only: %i[show update]
|
|
|
|
resource :billing, only: %i[show update]
|
2024-04-29 22:44:24 +02:00
|
|
|
resource :hosting, only: %i[show update] do
|
|
|
|
post :send_test_email, on: :collection
|
|
|
|
end
|
2024-04-18 07:56:51 -04:00
|
|
|
resource :security, only: %i[show update]
|
2024-03-28 13:23:54 -04:00
|
|
|
end
|
|
|
|
|
2024-05-17 09:09:32 -04:00
|
|
|
resources :imports, except: :show do
|
|
|
|
member do
|
|
|
|
get "load"
|
|
|
|
patch "load" => "imports#load_csv"
|
|
|
|
|
|
|
|
get "configure"
|
|
|
|
patch "configure" => "imports#update_mappings"
|
|
|
|
|
|
|
|
get "clean"
|
|
|
|
patch "clean" => "imports#update_csv"
|
|
|
|
|
|
|
|
get "confirm"
|
|
|
|
patch "confirm" => "imports#publish"
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2024-05-23 08:09:33 -04:00
|
|
|
resources :tags, except: %i[ show destroy ] do
|
2024-06-20 13:32:44 -04:00
|
|
|
resources :deletions, only: %i[ new create ], module: :tag
|
|
|
|
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-06-20 13:32:44 -04:00
|
|
|
resources :deletions, only: %i[ new create ], module: :category
|
2024-06-20 08:15:09 -04:00
|
|
|
end
|
|
|
|
|
2024-06-20 08:38:59 -04:00
|
|
|
resources :merchants, only: %i[ index new create edit update destroy ]
|
|
|
|
|
2024-06-20 13:32:44 -04:00
|
|
|
namespace :account do
|
|
|
|
resources :transfers, only: %i[ new create destroy ]
|
2024-06-24 11:58:39 -04:00
|
|
|
|
|
|
|
namespace :transaction do
|
|
|
|
resources :rules, only: %i[ index ]
|
|
|
|
end
|
2024-06-20 13:32:44 -04:00
|
|
|
end
|
2024-06-19 06:52:08 -04:00
|
|
|
|
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
|
|
|
|
end
|
|
|
|
|
|
|
|
member do
|
|
|
|
post :sync
|
|
|
|
end
|
|
|
|
|
2024-06-21 16:23:28 -04:00
|
|
|
scope module: :account do
|
|
|
|
resource :logo, only: :show
|
2024-06-24 11:58:39 -04:00
|
|
|
|
2024-07-01 10:49:43 -04:00
|
|
|
resources :entries, except: :index do
|
|
|
|
collection do
|
|
|
|
get "transactions", as: :transaction
|
|
|
|
get "valuations", as: :valuation
|
|
|
|
end
|
2024-06-24 11:58:39 -04:00
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
resources :transactions, only: %i[ index new create ] do
|
|
|
|
collection do
|
|
|
|
post "bulk_delete"
|
|
|
|
get "bulk_edit"
|
|
|
|
post "bulk_update"
|
|
|
|
post "mark_transfers"
|
|
|
|
post "unmark_transfers"
|
2024-07-01 10:49:43 -04:00
|
|
|
get "rules"
|
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-06-13 14:37:27 -04:00
|
|
|
resources :institutions, except: %i[ index show ]
|
|
|
|
|
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-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
|