Expose version endpoint

This commit is contained in:
2025-08-07 19:10:06 +02:00
parent 3ba62af01a
commit e2b64620b5
4 changed files with 38 additions and 12 deletions

View File

@@ -39,6 +39,11 @@ func main() {
fmt.Println("Using default configuration.")
}
// Set version information
cfg.Version = version
cfg.CommitHash = commitHash
cfg.BuildTime = buildTime
// Create the data directory if it doesn't exist
if cfg.Instances.AutoCreateDirs {
if err := os.MkdirAll(cfg.Instances.InstancesDir, 0755); err != nil {