* Fix mastodon version * テーブル作成 * Wip: フレンドサーバーフォローの承認を受信 * Wip: フレンド申請拒否を受信 * Wip: フォローリクエストを受理 * Wip: 相手からのフォロー・アンフォローを受理 * 普通のフォローとフレンドサーバーのフォローを区別するテストを追加 * ドメインブロックによるフォロー拒否 * ドメインブロックしたあと、申請中のフォロリクを取り下げる処理 * スタブに条件を追加 * Wip: 相手からのDelete信号に対応 * DB定義が消えていたので修正 * Wip: ローカル公開投稿をフレンドに送信する処理など * Wip: 未収載+誰でもの投稿をフレンドに送る設定 * Wip: ローカル公開をそのまま送信する設定を考慮 * Fix test * Wip: 他サーバーからのローカル公開投稿の受け入れ * Wip: Web画面作成 * Fix test * Wip: ローカル公開を連合TLに流す * Wip: フレンドサーバーの削除ボタン * Wip: メール通知や設定のテストなど * Wip: 翻訳を作成 * Fix: 却下されたあとフォローボタンが表示されない問題 * Wip: 編集できない問題 * 有効にしていないフレンドサーバーをリストで無効表示
225 lines
5.1 KiB
Ruby
225 lines
5.1 KiB
Ruby
# frozen_string_literal: true
|
|
|
|
namespace :admin do
|
|
get '/dashboard', to: 'dashboard#index'
|
|
|
|
resources :domain_allows, only: [:new, :create, :destroy]
|
|
resources :domain_blocks, only: [:new, :create, :destroy, :update, :edit] do
|
|
collection do
|
|
post :batch
|
|
end
|
|
end
|
|
|
|
resources :export_domain_allows, only: [:new] do
|
|
collection do
|
|
get :export, constraints: { format: :csv }
|
|
post :import
|
|
end
|
|
end
|
|
|
|
resources :export_domain_blocks, only: [:new] do
|
|
collection do
|
|
get :export, constraints: { format: :csv }
|
|
post :import
|
|
end
|
|
end
|
|
|
|
resources :email_domain_blocks, only: [:index, :new, :create] do
|
|
collection do
|
|
post :batch
|
|
end
|
|
end
|
|
|
|
resources :action_logs, only: [:index]
|
|
resources :warning_presets, except: [:new, :show]
|
|
resource :ng_words, only: [:show, :create]
|
|
resource :sensitive_words, only: [:show, :create]
|
|
|
|
resources :announcements, except: [:show] do
|
|
member do
|
|
post :publish
|
|
post :unpublish
|
|
end
|
|
end
|
|
|
|
get '/settings', to: redirect('/admin/settings/branding')
|
|
get '/settings/edit', to: redirect('/admin/settings/branding')
|
|
|
|
namespace :settings do
|
|
resource :branding, only: [:show, :update], controller: 'branding'
|
|
resource :registrations, only: [:show, :update], controller: 'registrations'
|
|
resource :content_retention, only: [:show, :update], controller: 'content_retention'
|
|
resource :about, only: [:show, :update], controller: 'about'
|
|
resource :appearance, only: [:show, :update], controller: 'appearance'
|
|
resource :discovery, only: [:show, :update], controller: 'discovery'
|
|
end
|
|
|
|
resources :site_uploads, only: [:destroy]
|
|
|
|
resources :invites, only: [:index, :create, :destroy] do
|
|
collection do
|
|
post :deactivate_all
|
|
end
|
|
end
|
|
|
|
resources :relays, only: [:index, :new, :create, :destroy] do
|
|
member do
|
|
post :enable
|
|
post :disable
|
|
end
|
|
end
|
|
|
|
resources :friend_servers, only: [:index, :new, :edit, :create, :update, :destroy] do
|
|
member do
|
|
post :follow
|
|
post :unfollow
|
|
post :accept
|
|
post :reject
|
|
end
|
|
end
|
|
|
|
resources :instances, only: [:index, :show, :destroy], constraints: { id: %r{[^/]+} }, format: 'html' do
|
|
member do
|
|
post :clear_delivery_errors
|
|
post :restart_delivery
|
|
post :stop_delivery
|
|
end
|
|
end
|
|
|
|
resources :rules, only: [:index, :create, :edit, :update, :destroy]
|
|
|
|
resources :webhooks do
|
|
member do
|
|
post :enable
|
|
post :disable
|
|
end
|
|
|
|
resource :secret, only: [], controller: 'webhooks/secrets' do
|
|
post :rotate
|
|
end
|
|
end
|
|
|
|
resources :reports, only: [:index, :show] do
|
|
resources :actions, only: [:create], controller: 'reports/actions' do
|
|
collection do
|
|
post :preview
|
|
end
|
|
end
|
|
|
|
member do
|
|
post :assign_to_self
|
|
post :unassign
|
|
post :reopen
|
|
post :resolve
|
|
end
|
|
end
|
|
|
|
resources :report_notes, only: [:create, :destroy]
|
|
|
|
resources :accounts, only: [:index, :show, :destroy] do
|
|
member do
|
|
post :enable
|
|
post :unsensitive
|
|
post :unsilence
|
|
post :unsuspend
|
|
post :redownload
|
|
post :remove_avatar
|
|
post :remove_header
|
|
post :memorialize
|
|
post :approve
|
|
post :reject
|
|
post :unblock_email
|
|
end
|
|
|
|
collection do
|
|
post :batch
|
|
end
|
|
|
|
resource :change_email, only: [:show, :update]
|
|
resource :reset, only: [:create]
|
|
resource :action, only: [:new, :create], controller: 'account_actions'
|
|
|
|
resources :statuses, only: [:index, :show] do
|
|
member do
|
|
post :remove_history
|
|
post :remove_media
|
|
post :force_sensitive
|
|
post :force_cw
|
|
post :remove_status
|
|
end
|
|
|
|
collection do
|
|
post :batch
|
|
end
|
|
end
|
|
|
|
resources :relationships, only: [:index]
|
|
|
|
resource :confirmation, only: [:create] do
|
|
collection do
|
|
post :resend
|
|
end
|
|
end
|
|
end
|
|
|
|
resources :users, only: [] do
|
|
resource :two_factor_authentication, only: [:destroy], controller: 'users/two_factor_authentications'
|
|
resource :role, only: [:show, :update], controller: 'users/roles'
|
|
end
|
|
|
|
resources :custom_emojis, only: [:index, :new, :create] do
|
|
collection do
|
|
post :batch
|
|
end
|
|
end
|
|
|
|
resources :ip_blocks, only: [:index, :new, :create] do
|
|
collection do
|
|
post :batch
|
|
end
|
|
end
|
|
|
|
resources :roles, except: [:show]
|
|
resources :account_moderation_notes, only: [:create, :destroy]
|
|
resource :follow_recommendations, only: [:show, :update]
|
|
resources :tags, only: [:show, :update]
|
|
|
|
namespace :trends do
|
|
resources :links, only: [:index] do
|
|
collection do
|
|
post :batch
|
|
end
|
|
end
|
|
|
|
resources :tags, only: [:index] do
|
|
collection do
|
|
post :batch
|
|
end
|
|
end
|
|
|
|
resources :statuses, only: [:index] do
|
|
collection do
|
|
post :batch
|
|
end
|
|
end
|
|
|
|
namespace :links do
|
|
resources :preview_card_providers, only: [:index], path: :publishers do
|
|
collection do
|
|
post :batch
|
|
end
|
|
end
|
|
end
|
|
end
|
|
|
|
namespace :disputes do
|
|
resources :appeals, only: [:index] do
|
|
member do
|
|
post :approve
|
|
post :reject
|
|
end
|
|
end
|
|
end
|
|
|
|
resources :software_updates, only: [:index]
|
|
end
|