config

package
v1.3.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 22, 2026 License: AGPL-3.0, AGPL-3.0-or-later Imports: 3 Imported by: 0

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL