diff options
author | Claire <claire.github-309c@sitedethib.com> | 2022-06-23 23:12:01 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-06-23 23:12:01 +0200 |
commit | 35588d09e2fb720542f45fcc3a75c9c7c9f8d0a4 (patch) | |
tree | 3f84e87367f3a75aad4d7043dc39059dce35a779 /app/models | |
parent | 9c571a95db125aa2cbf31d1406d4327032ce9111 (diff) |
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
Diffstat (limited to 'app/models')
-rw-r--r-- | app/models/domain_allow.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/app/models/domain_allow.rb b/app/models/domain_allow.rb index 4b0a89c18..6aa9267fe 100644 --- a/app/models/domain_allow.rb +++ b/app/models/domain_allow.rb @@ -11,6 +11,7 @@ # class DomainAllow < ApplicationRecord + include Paginable include DomainNormalizable include DomainMaterializable |