Skip to content

Commit

Permalink
Remove unused routes (mastodon#25578)
Browse files Browse the repository at this point in the history
  • Loading branch information
mjankowski authored and skerit committed Jul 7, 2023
1 parent 1f86590 commit 27ff6fb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
4 changes: 1 addition & 3 deletions config/routes.rb
Original file line number Diff line number Diff line change
Expand Up @@ -103,8 +103,6 @@

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
Expand Down Expand Up @@ -164,7 +162,7 @@
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)

Expand Down
6 changes: 3 additions & 3 deletions config/routes/admin.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -31,7 +31,7 @@
end

resources :action_logs, only: [:index]
resources :warning_presets, except: [:new]
resources :warning_presets, except: [:new, :show]

resources :announcements, except: [:show] do
member do
Expand Down Expand Up @@ -75,7 +75,7 @@
end
end

resources :rules
resources :rules, only: [:index, :create, :edit, :update, :destroy]

resources :webhooks do
member do
Expand Down

0 comments on commit 27ff6fb

Please sign in to comment.