mirror of
https://github.com/glitch-soc/mastodon.git
synced 2026-03-29 03:00:33 +02:00
Use resources to declare API TOS access endpoints (#38416)
This commit is contained in:
@@ -145,14 +145,13 @@ namespace :api, format: false do
|
||||
resources :peers, only: [:index]
|
||||
resources :rules, only: [:index]
|
||||
resources :domain_blocks, only: [:index]
|
||||
resources :terms_of_service, only: [:index, :show], param: :date
|
||||
|
||||
resource :privacy_policy, only: [:show]
|
||||
resource :terms_of_service, only: [:show]
|
||||
resource :extended_description, only: [:show]
|
||||
resource :translation_languages, only: [:show]
|
||||
resource :languages, only: [:show]
|
||||
resource :activity, only: [:show], controller: :activity
|
||||
|
||||
get '/terms_of_service/:date', to: 'terms_of_services#show'
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user