diff options
author | 2020-12-18 23:12:33 +0300 | |
---|---|---|
committer | 2020-12-18 23:12:33 +0300 | |
commit | d1cb4200229a7811f21ce44dc427674e4f0b4ff3 (patch) | |
tree | b9f9d9522c3da4d4e05bc8aadfe3973b6cea16d1 /backend/constants.py | |
parent | Uses Builtin User Class (diff) |
Runs Initial Validation Asynchronously
Moves the validation code of webhook urls to an async function that is
called by the route, to avoid blocking code.
Signed-off-by: Hassan Abouelela <[email protected]>
Diffstat (limited to 'backend/constants.py')
-rw-r--r-- | backend/constants.py | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/backend/constants.py b/backend/constants.py index f5e4304..bfcf261 100644 --- a/backend/constants.py +++ b/backend/constants.py @@ -62,3 +62,12 @@ class FormFeatures(Enum): COLLECT_EMAIL = "COLLECT_EMAIL" DISABLE_ANTISPAM = "DISABLE_ANTISPAM" WEBHOOK_ENABLED = "WEBHOOK_ENABLED" + + +class WebHook(Enum): + URL = "url" + MESSAGE = "message" + + +class Meta(Enum): + WEB_HOOK = WebHook |