]> cat aescling's git repositories - mastodon.git/commit
Add /api/v1/admin/domain_allows (#18668)
authorClaire <claire.github-309c@sitedethib.com>
Thu, 23 Jun 2022 21:12:01 +0000 (23:12 +0200)
committeraescling <aescling+gitlab@cat.family>
Mon, 5 Sep 2022 04:27:52 +0000 (00:27 -0400)
commitc6bbde9ff8ee9d20fad1fed38eb960084104d833
tree90042ed183b6159515552cf4c7a90aad9bb02d45
parentbe2ecdb5626da3d3830c481c090b1cd90f81079e
Add /api/v1/admin/domain_allows (#18668)

- `GET /api/v1/admin/domain_allows` lists allowed domains
- `GET /api/v1/admin/domain_allows/:id` shows one by ID
- `DELETE /api/v1/admin/domain_allows/:id` deletes a given domain from the list
  of allowed domains
- `POST /api/v1/admin/domain_allows` to allow a new domain:
  if that domain is already allowed, the existing DomainAllow will be returned
app/controllers/api/v1/admin/domain_allows_controller.rb [new file with mode: 0644]
app/models/domain_allow.rb
app/policies/domain_allow_policy.rb
app/serializers/rest/admin/domain_allow_serializer.rb [new file with mode: 0644]
config/routes.rb
spec/controllers/api/v1/admin/domain_allows_controller_spec.rb [new file with mode: 0644]