From 177f367a8c0bd9d4f980b5ba006c786557dd0117 Mon Sep 17 00:00:00 2001 From: kolaente Date: Tue, 17 Oct 2023 19:58:13 +0200 Subject: [PATCH] feat(webhooks): expose whether webhooks are enabled --- pkg/routes/api/v1/info.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pkg/routes/api/v1/info.go b/pkg/routes/api/v1/info.go index d2be79da805..0b1cf243781 100644 --- a/pkg/routes/api/v1/info.go +++ b/pkg/routes/api/v1/info.go @@ -50,6 +50,7 @@ type vikunjaInfos struct { UserDeletionEnabled bool `json:"user_deletion_enabled"` TaskCommentsEnabled bool `json:"task_comments_enabled"` DemoModeEnabled bool `json:"demo_mode_enabled"` + WebhooksEnabled bool `json:"webhooks_enabled"` } type authInfo struct { @@ -94,6 +95,7 @@ func Info(c echo.Context) error { UserDeletionEnabled: config.ServiceEnableUserDeletion.GetBool(), TaskCommentsEnabled: config.ServiceEnableTaskComments.GetBool(), DemoModeEnabled: config.ServiceDemoMode.GetBool(), + WebhooksEnabled: config.WebhooksEnabled.GetBool(), AvailableMigrators: []string{ (&vikunja_file.FileMigrator{}).Name(), (&ticktick.Migrator{}).Name(),