Add caldav enabled/disabled to /info endpoint
This commit is contained in:
parent
118c7f25b5
commit
e4dd314079
1 changed files with 2 additions and 0 deletions
|
@ -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(),
|
||||||
|
|
Loading…
Reference in a new issue