From e4dd314079277842994b25ff8ec9de101a183983 Mon Sep 17 00:00:00 2001 From: kolaente Date: Fri, 4 Sep 2020 09:58:42 +0200 Subject: [PATCH] Add caldav enabled/disabled to /info endpoint --- 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 74b3716fc..f81d9363a 100644 --- a/pkg/routes/api/v1/info.go +++ b/pkg/routes/api/v1/info.go @@ -37,6 +37,7 @@ type vikunjaInfos struct { EnabledBackgroundProviders []string `json:"enabled_background_providers"` TotpEnabled bool `json:"totp_enabled"` Legal legalInfo `json:"legal"` + CaldavEnabled bool `json:"caldav_enabled"` } type legalInfo struct { @@ -61,6 +62,7 @@ func Info(c echo.Context) error { RegistrationEnabled: config.ServiceEnableRegistration.GetBool(), TaskAttachmentsEnabled: config.ServiceEnableTaskAttachments.GetBool(), TotpEnabled: config.ServiceEnableTotp.GetBool(), + CaldavEnabled: config.ServiceEnableCaldav.GetBool(), Legal: legalInfo{ ImprintURL: config.LegalImprintURL.GetString(), PrivacyPolicyURL: config.LegalPrivacyURL.GetString(),