MCPcopy Create free account
hub / github.com/NoFxAiOS/nofx / HandleGetCryptoConfig

Method HandleGetCryptoConfig

api/crypto_handler.go:26–31  ·  view source on GitHub ↗

==================== Crypto Config Endpoint ==================== HandleGetCryptoConfig Get crypto configuration

(c *gin.Context)

Source from the content-addressed store, hash-verified

24
25// HandleGetCryptoConfig Get crypto configuration
26func (h *CryptoHandler) HandleGetCryptoConfig(c *gin.Context) {
27 cfg := config.Get()
28 c.JSON(http.StatusOK, gin.H{
29 "transport_encryption": cfg.TransportEncryption,
30 })
31}
32
33// ==================== Public Key Endpoint ====================
34

Callers

nothing calls this directly

Calls 1

GetFunction · 0.92

Tested by

no test coverage detected