feat: user webhooks system settings

This commit is contained in:
Timothy Jaeryang Baek committed 2025-03-30 21:31:16 -07:00
1 parent d55735dc1e
commit 33f93371dc
5 files changed
+38 -14

No files matched your search

+6
View File
@@ -1092,6 +1092,12 @@ ENABLE_MESSAGE_RATING = PersistentConfig(
os.environ.get("ENABLE_MESSAGE_RATING", "True").lower() == "true",
)
ENABLE_USER_WEBHOOKS = PersistentConfig(
"ENABLE_USER_WEBHOOKS",
"ui.enable_user_webhooks",
os.environ.get("ENABLE_USER_WEBHOOKS", "True").lower() == "true",
)
def validate_cors_origins(origins):
for origin in origins: