mirror of
https://github.com/glitch-soc/mastodon.git
synced 2026-03-29 03:00:33 +02:00
Add GET /api/v1/donation_campaigns (#37880)
This commit is contained in:
@@ -4,6 +4,9 @@ shared:
|
||||
limited_federation_mode: <%= (ENV.fetch('LIMITED_FEDERATION_MODE', nil) || ENV.fetch('WHITELIST_MODE', nil)) == 'true' %>
|
||||
self_destruct_value: <%= ENV.fetch('SELF_DESTRUCT', nil)&.to_json %>
|
||||
software_update_url: <%= ENV.fetch('UPDATE_CHECK_URL', 'https://api.joinmastodon.org/update-check')&.to_json %>
|
||||
donation_campaigns:
|
||||
api_url: <%= ENV.fetch('DONATION_CAMPAIGNS_URL', nil)&.to_json %>
|
||||
environment: <%= ENV.fetch('DONATION_CAMPAIGNS_ENVIRONMENT', nil)&.to_json %>
|
||||
source:
|
||||
base_url: <%= ENV.fetch('SOURCE_BASE_URL', nil)&.to_json %>
|
||||
repository: <%= ENV.fetch('GITHUB_REPOSITORY', 'mastodon/mastodon') %>
|
||||
|
||||
@@ -74,6 +74,7 @@ namespace :api, format: false do
|
||||
resources :suggestions, only: [:index, :destroy]
|
||||
resources :scheduled_statuses, only: [:index, :show, :update, :destroy]
|
||||
resources :preferences, only: [:index]
|
||||
resources :donation_campaigns, only: [:index]
|
||||
|
||||
resources :annual_reports, only: [:index, :show] do
|
||||
member do
|
||||
|
||||
Reference in New Issue
Block a user