mirror of
https://github.com/kikobar/mastodon.git
synced 2024-11-17 21:04:14 +00:00
Remove unused routes (#25578)
This commit is contained in:
parent
683ba5ecb1
commit
f8bd581126
|
@ -103,8 +103,6 @@ Rails.application.routes.draw do
|
|||
|
||||
resources :followers, only: [:index], controller: :follower_accounts
|
||||
resources :following, only: [:index], controller: :following_accounts
|
||||
resource :follow, only: [:create], controller: :account_follow
|
||||
resource :unfollow, only: [:create], controller: :account_unfollow
|
||||
|
||||
resource :outbox, only: [:show], module: :activitypub
|
||||
resource :inbox, only: [:create], module: :activitypub
|
||||
|
@ -164,7 +162,7 @@ Rails.application.routes.draw do
|
|||
get '/backups/:id/download', to: 'backups#download', as: :download_backup, format: false
|
||||
|
||||
resource :authorize_interaction, only: [:show, :create]
|
||||
resource :share, only: [:show, :create]
|
||||
resource :share, only: [:show]
|
||||
|
||||
draw(:admin)
|
||||
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
namespace :admin do
|
||||
get '/dashboard', to: 'dashboard#index'
|
||||
|
||||
resources :domain_allows, only: [:new, :create, :show, :destroy]
|
||||
resources :domain_allows, only: [:new, :create, :destroy]
|
||||
resources :domain_blocks, only: [:new, :create, :destroy, :update, :edit] do
|
||||
collection do
|
||||
post :batch
|
||||
|
@ -31,7 +31,7 @@ namespace :admin do
|
|||
end
|
||||
|
||||
resources :action_logs, only: [:index]
|
||||
resources :warning_presets, except: [:new]
|
||||
resources :warning_presets, except: [:new, :show]
|
||||
|
||||
resources :announcements, except: [:show] do
|
||||
member do
|
||||
|
@ -75,7 +75,7 @@ namespace :admin do
|
|||
end
|
||||
end
|
||||
|
||||
resources :rules
|
||||
resources :rules, only: [:index, :create, :edit, :update, :destroy]
|
||||
|
||||
resources :webhooks do
|
||||
member do
|
||||
|
|
Loading…
Reference in a new issue