From 346aea73b9c7daf92966019a297a27391f0b86ce Mon Sep 17 00:00:00 2001 From: cynfo3000 Date: Tue, 10 Mar 2026 01:32:52 +0100 Subject: [PATCH] fix: installer endpoint erlaubt platform=windows --- backend/api/installer.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/backend/api/installer.go b/backend/api/installer.go index fac9aaf..dca3724 100644 --- a/backend/api/installer.go +++ b/backend/api/installer.go @@ -15,9 +15,9 @@ func (h *Handler) uploadInstaller(w http.ResponseWriter, r *http.Request) { if platform == "" { platform = "freebsd" } - validPlatforms := map[string]bool{"freebsd": true, "linux": true} + validPlatforms := map[string]bool{"freebsd": true, "linux": true, "windows": true} if !validPlatforms[platform] { - writeError(w, http.StatusBadRequest, "Ungueltige Plattform (freebsd, linux)") + writeError(w, http.StatusBadRequest, "Ungueltige Plattform (freebsd, linux, windows)") return }