MCPcopy Create free account
hub / github.com/ZenNotes/zennotes / configFilePath

Function configFilePath

apps/server/internal/config/config.go:57–65  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

55}
56
57func configFilePath() string {
58 if v := os.Getenv("ZENNOTES_CONFIG_PATH"); v != "" {
59 return v
60 }
61 if home, err := os.UserHomeDir(); err == nil {
62 return filepath.Join(home, ".zennotes", "server.json")
63 }
64 return ".zennotes-server.json"
65}
66
67// SessionsPath is where opt-in persisted browser sessions live — next to the
68// host config file (e.g. /data/sessions.json alongside /data/server.json).

Callers 3

SessionsPathFunction · 0.85
LoadFunction · 0.85
SaveHostFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected