1
0
Fork 0
mirror of https://github.com/maybe-finance/maybe.git synced 2025-07-24 23:59:40 +02:00

New Settings Menu, Routes and Controllers Organization (#641)

* Add new settings routes and controllers

* Add new settings view, restructure controllers and routes

* Fix lint errors
This commit is contained in:
Zach Gollwitzer 2024-04-18 07:56:51 -04:00 committed by GitHub
parent 39d57a167e
commit 9bda7efc3f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
52 changed files with 771 additions and 203 deletions

View file

@ -1,24 +1,39 @@
Rails.application.routes.draw do
mount GoodJob::Engine => "jobs"
get "changelog" => "pages#changelog", as: :changelog
get "feedback" => "pages#feedback", as: :feedback
get "invites" => "pages#invites", as: :invites
resource :registration
resource :session
resource :password_reset
resource :password
resource :settings, only: %i[edit update] do
resource :self_hosting, only: %i[edit update], controller: "settings/self_hosting"
namespace :settings do
resource :profile, only: %i[show update]
resource :preferences, only: %i[show update]
resource :notifications, only: %i[show update]
resource :billing, only: %i[show update]
resource :hosting, only: %i[show update]
resource :security, only: %i[show update]
end
namespace :transactions do
resources :categories
# TODO: These are *placeholders*
# Uncomment `only` and add the necessary actions as they are implemented.
resources :rules, only: [ :index ]
resources :merchants, only: [ :index ]
end
resources :transactions do
match "search" => "transactions#search", on: :collection, via: [ :get, :post ], as: :search
end
namespace :transactions do
resources :categories
end
resources :accounts, shallow: true do
get :summary, on: :collection
post :sync, on: :member
resources :valuations
end