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:
parent
39d57a167e
commit
9bda7efc3f
52 changed files with 771 additions and 203 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue