aboutsummaryrefslogtreecommitdiffstats
path: root/backend/constants.py
diff options
context:
space:
mode:
authorGravatar Hassan Abouelela <[email protected]>2020-12-18 23:12:33 +0300
committerGravatar Hassan Abouelela <[email protected]>2020-12-18 23:12:33 +0300
commitd1cb4200229a7811f21ce44dc427674e4f0b4ff3 (patch)
treeb9f9d9522c3da4d4e05bc8aadfe3973b6cea16d1 /backend/constants.py
parentUses 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.py9
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