diff options
author | Claire <claire.github-309c@sitedethib.com> | 2022-06-01 17:31:36 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-06-01 17:31:36 +0200 |
commit | 28329ba62f90890b110517f6da69ca81d588f2f5 (patch) | |
tree | 4027950e3e59b14c98056aaee0028df27272cc4d /app/models | |
parent | f5783182c39b07cb119861edb6db6a1c9b2213e9 (diff) |
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
Diffstat (limited to 'app/models')
-rw-r--r-- | app/models/domain_block.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/app/models/domain_block.rb b/app/models/domain_block.rb index 2b797ef91..a15206b5e 100644 --- a/app/models/domain_block.rb +++ b/app/models/domain_block.rb @@ -16,6 +16,7 @@ # class DomainBlock < ApplicationRecord + include Paginable include DomainNormalizable include DomainMaterializable |