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 }