new sw show template

This commit is contained in:
2026-01-28 18:53:14 +01:00
parent b6466061bd
commit 123af105f4
10 changed files with 125 additions and 64 deletions
+1 -1
View File
@@ -15,7 +15,7 @@ func NewSoftwareUpdaterController(service domain.SoftwareUpdaterServiceInterface
return &SoftwareUpdaterController{service: service}
}
func (c *SoftwareUpdaterController) update(w http.ResponseWriter, r *http.Request) {
func (c *SoftwareUpdaterController) Update(w http.ResponseWriter, r *http.Request) {
secret := r.URL.Query().Get("secret")
if secret != os.Getenv("UPDATE_SECRET") {
http.Error(w, "Unauthorized", http.StatusUnauthorized)