()
| 55 | } |
| 56 | |
| 57 | func 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). |
no outgoing calls
no test coverage detected