1
0
Fork 0
forked from fedi/mastodon
mastodon/app/controllers/api/v1/admin
Claire 28329ba62f
Add /api/v1/admin/domain_blocks (#18247)
* Add /api/v1/admin/domain_blocks

Fixes #18140

- `GET /api/v1/admin/domain_blocks` lists domain blocks
- `GET /api/v1/admin/domain_blocks/:id` shows one by ID
- `DELETE /api/v1/admin/domain_blocks/:id` deletes a given domain block
- `POST /api/v1/admin/domain_blocks` to create a new domain block:
  if it conflicts with an existing one, returns an error with
  an attribute `existing_domain_block` with the rendered domain block

* Simplify conflict handling as suggested in review
2022-06-01 17:31:36 +02:00
..
trends Fix admin API unconditionally requiring CSRF token (#17975) 2022-04-06 20:57:18 +02:00
account_actions_controller.rb Fix admin API unconditionally requiring CSRF token (#17975) 2022-04-06 20:57:18 +02:00
accounts_controller.rb Fix extremely rare race condition when deleting a toot or account (#17994) 2022-04-08 19:17:37 +02:00
dimensions_controller.rb Fix admin API unconditionally requiring CSRF token (#17975) 2022-04-06 20:57:18 +02:00
domain_blocks_controller.rb Add /api/v1/admin/domain_blocks (#18247) 2022-06-01 17:31:36 +02:00
measures_controller.rb Fix admin API unconditionally requiring CSRF token (#17975) 2022-04-06 20:57:18 +02:00
reports_controller.rb Fix admin API unconditionally requiring CSRF token (#17975) 2022-04-06 20:57:18 +02:00
retention_controller.rb Fix admin API unconditionally requiring CSRF token (#17975) 2022-04-06 20:57:18 +02:00