feat: App-Version 0.9.1 + Modulversionsnummern

- version.go: AppVersion + Modules-Map (pro Modul interne Versionsnummer)
- GET /api/version: liefert App- und Modulversionen (ohne Auth)
- archivmail version: zeigt App- und Modulversionen in CLI
- version-Konstante aus cmd_import.go entfernt (war falsche Stelle)

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
sysops
2026-03-31 01:12:51 +02:00
parent 64433aa847
commit 4f7a7d6946
5 changed files with 57 additions and 5 deletions
+12
View File
@@ -0,0 +1,12 @@
package api
import "net/http"
// handleVersion liefert App- und Modulversionen.
// GET /api/version — öffentlich (kein Auth erforderlich).
func (s *Server) handleVersion(w http.ResponseWriter, r *http.Request) {
writeJSON(w, http.StatusOK, map[string]interface{}{
"version": s.appVersion,
"modules": s.moduleVersions,
})
}