Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove unused routes #25578

Merged
merged 5 commits into from
Jul 1, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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