Add caldav enabled/disabled to /info endpoint

This commit is contained in:
kolaente 2020-09-04 09:58:42 +02:00
parent 118c7f25b5
commit e4dd314079
No known key found for this signature in database
GPG key ID: F40E70337AB24C9B

View file

@ -37,6 +37,7 @@ type vikunjaInfos struct {
EnabledBackgroundProviders []string `json:"enabled_background_providers"` EnabledBackgroundProviders []string `json:"enabled_background_providers"`
TotpEnabled bool `json:"totp_enabled"` TotpEnabled bool `json:"totp_enabled"`
Legal legalInfo `json:"legal"` Legal legalInfo `json:"legal"`
CaldavEnabled bool `json:"caldav_enabled"`
} }
type legalInfo struct { type legalInfo struct {
@ -61,6 +62,7 @@ func Info(c echo.Context) error {
RegistrationEnabled: config.ServiceEnableRegistration.GetBool(), RegistrationEnabled: config.ServiceEnableRegistration.GetBool(),
TaskAttachmentsEnabled: config.ServiceEnableTaskAttachments.GetBool(), TaskAttachmentsEnabled: config.ServiceEnableTaskAttachments.GetBool(),
TotpEnabled: config.ServiceEnableTotp.GetBool(), TotpEnabled: config.ServiceEnableTotp.GetBool(),
CaldavEnabled: config.ServiceEnableCaldav.GetBool(),
Legal: legalInfo{ Legal: legalInfo{
ImprintURL: config.LegalImprintURL.GetString(), ImprintURL: config.LegalImprintURL.GetString(),
PrivacyPolicyURL: config.LegalPrivacyURL.GetString(), PrivacyPolicyURL: config.LegalPrivacyURL.GetString(),