mirror of
https://github.com/funamitech/mastodon
synced 2024-12-15 07:09:03 +09:00
2126812f65
Conflicts: - `app/views/settings/preferences/other/show.html.haml`: Upstream moved some settings, where glitch-soc has an extra setting. Ported upstream changes, moving the same settings as them.
77 lines
2.3 KiB
Ruby
77 lines
2.3 KiB
Ruby
# frozen_string_literal: true
|
|
|
|
namespace :settings do
|
|
resource :profile, only: [:show, :update] do
|
|
resources :pictures, only: :destroy
|
|
end
|
|
|
|
get :preferences, to: redirect('/settings/preferences/appearance')
|
|
|
|
namespace :preferences do
|
|
resource :appearance, only: [:show, :update], controller: :appearance
|
|
resource :notifications, only: [:show, :update]
|
|
resource :other, only: [:show, :update], controller: :other
|
|
end
|
|
|
|
resources :imports, only: [:index, :show, :destroy, :create] do
|
|
member do
|
|
post :confirm
|
|
get :failures
|
|
end
|
|
end
|
|
|
|
resource :export, only: [:show, :create]
|
|
|
|
namespace :exports, constraints: { format: :csv } do
|
|
resources :follows, only: :index, controller: :following_accounts
|
|
resources :blocks, only: :index, controller: :blocked_accounts
|
|
resources :mutes, only: :index, controller: :muted_accounts
|
|
resources :lists, only: :index, controller: :lists
|
|
resources :domain_blocks, only: :index, controller: :blocked_domains
|
|
resources :bookmarks, only: :index, controller: :bookmarks
|
|
end
|
|
|
|
resources :two_factor_authentication_methods, only: [:index] do
|
|
collection do
|
|
post :disable
|
|
end
|
|
end
|
|
|
|
resource :otp_authentication, only: [:show, :create], controller: 'two_factor_authentication/otp_authentication'
|
|
|
|
resources :webauthn_credentials, only: [:index, :new, :create, :destroy],
|
|
path: 'security_keys',
|
|
controller: 'two_factor_authentication/webauthn_credentials' do
|
|
collection do
|
|
get :options
|
|
end
|
|
end
|
|
|
|
namespace :two_factor_authentication do
|
|
resources :recovery_codes, only: [:create]
|
|
resource :confirmation, only: [:new, :create]
|
|
end
|
|
|
|
resources :applications, except: [:edit] do
|
|
member do
|
|
post :regenerate
|
|
end
|
|
end
|
|
|
|
resources :flavours, only: [:index, :show, :update], param: :flavour
|
|
|
|
resource :delete, only: [:show, :destroy]
|
|
resource :migration, only: [:show, :create]
|
|
resource :verification, only: :show
|
|
resource :privacy, only: [:show, :update], controller: 'privacy'
|
|
|
|
namespace :migration do
|
|
resource :redirect, only: [:new, :create, :destroy]
|
|
end
|
|
|
|
resources :aliases, only: [:index, :create, :destroy]
|
|
resources :sessions, only: [:destroy]
|
|
resources :featured_tags, only: [:index, :create, :destroy]
|
|
resources :login_activities, only: [:index]
|
|
end
|