Documentation
¶
Overview ¶
SPDX-License-Identifier: AGPL-3.0-or-later
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Handler ¶
type Handler struct {
// contains filtered or unexported fields
}
Handler handles public configuration API requests
func NewHandler ¶
func NewHandler(configProvider configProvider) *Handler
NewHandler creates a new config handler
func (*Handler) HandleGetConfig ¶
func (h *Handler) HandleGetConfig(w http.ResponseWriter, r *http.Request)
HandleGetConfig handles GET /api/v1/config
type Response ¶
type Response struct {
SMTPEnabled bool `json:"smtpEnabled"`
StorageEnabled bool `json:"storageEnabled"`
OnlyAdminCanCreate bool `json:"onlyAdminCanCreate"`
OAuthEnabled bool `json:"oauthEnabled"`
MagicLinkEnabled bool `json:"magicLinkEnabled"`
}
Response represents the public configuration exposed to the frontend
Click to show internal directories.
Click to hide internal directories.