Create API calls to Manage Blacklisted Domains
Add all API calls to manage blacklisted domains via a database. Also, change the code to use the blacklisted domains from the database and not from the config file. bp/blacklist Change-Id: I0fa08652cc0f15ab57708cd28413c43200e6d802
This commit is contained in:
@@ -160,6 +160,10 @@ class DuplicateRecord(Duplicate):
|
||||
error_type = 'duplicate_record'
|
||||
|
||||
|
||||
class DuplicateBlacklist(Duplicate):
|
||||
error_type = 'duplicate_blacklist'
|
||||
|
||||
|
||||
class NotFound(Base):
|
||||
error_code = 404
|
||||
error_type = 'not_found'
|
||||
@@ -177,6 +181,10 @@ class TsigKeyNotFound(NotFound):
|
||||
error_type = 'tsigkey_not_found'
|
||||
|
||||
|
||||
class BlacklistNotFound(NotFound):
|
||||
error_type = 'blacklist_not_found'
|
||||
|
||||
|
||||
class DomainNotFound(NotFound):
|
||||
error_type = 'domain_not_found'
|
||||
|
||||
|
||||
Reference in New Issue
Block a user