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
|
|
|
|
resources :deletions, only: %i[ new create ], module: :tags
|
|
|
|
end
|
|
|
|
|
2024-04-18 07:56:51 -04:00
|
|
|
resources :transactions do
|
2024-05-02 07:24:31 -06:00
|
|
|
collection do
|
2024-05-22 12:31:25 +02:00
|
|
|
scope module: :transactions, as: :transaction do
|
2024-05-30 20:55:18 -04:00
|
|
|
resources :rows, only: %i[ show update ]
|
|
|
|
|
2024-05-22 12:31:25 +02:00
|
|
|
resources :categories do
|
2024-05-02 07:24:31 -06:00
|
|
|
resources :deletions, only: %i[ new create ], module: :categories
|
2024-05-22 12:31:25 +02:00
|
|
|
collection do
|
|
|
|
resource :dropdown, only: :show, module: :categories, as: :category_dropdown
|
|
|
|
end
|
2024-05-02 07:24:31 -06:00
|
|
|
end
|
|
|
|
|
2024-05-22 12:31:25 +02:00
|
|
|
resources :rules, only: %i[ index ]
|
|
|
|
resources :merchants, only: %i[ index new create edit update destroy ]
|
2024-05-02 07:24:31 -06:00
|
|
|
end
|
|
|
|
end
|
2024-04-04 17:29:50 -04:00
|
|
|
end
|
|
|
|
|
2024-02-20 09:07:55 -05:00
|
|
|
resources :accounts, shallow: true do
|
2024-04-18 07:56:51 -04:00
|
|
|
get :summary, on: :collection
|
2024-04-29 14:56:38 +01:00
|
|
|
get :list, on: :collection
|
2024-03-21 13:39:10 -04:00
|
|
|
post :sync, on: :member
|
2024-04-25 15:32:45 +01:00
|
|
|
resource :logo, only: %i[show], module: :accounts
|
2024-02-20 09:07:55 -05:00
|
|
|
resources :valuations
|
|
|
|
end
|
2024-02-02 09:05:04 -06:00
|
|
|
|
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
|