update auf public download
All checks were successful
release-tag / release-image (push) Successful in 1m40s

This commit is contained in:
2025-09-27 15:55:16 +02:00
parent 7d0f4befe1
commit 8c05ad6ffe
2 changed files with 92 additions and 8 deletions

View File

@@ -199,7 +199,7 @@ func Register(mux *http.ServeMux, d Deps) {
_ = d.Mesh.SyncNow(r.Context()) // prompt push (best effort)
}
// Nach Aktion Items partial zurückgeben (HTMX swap)
http.Redirect(w, r, "/admin/items", http.StatusSeeOther)
http.Redirect(w, r, "/admin", http.StatusSeeOther)
})
mux.HandleFunc("/admin/items/rename", func(w http.ResponseWriter, r *http.Request) {
@@ -213,7 +213,7 @@ func Register(mux *http.ServeMux, d Deps) {
_, _ = d.Store.Rename(r.Context(), filesvc.ID(id), newName)
_ = d.Mesh.SyncNow(r.Context())
}
http.Redirect(w, r, "/admin/items", http.StatusSeeOther)
http.Redirect(w, r, "/admin", http.StatusSeeOther) //hier test nicht mehr /admin/items
})
mux.HandleFunc("/admin/items/delete", func(w http.ResponseWriter, r *http.Request) {
@@ -226,7 +226,7 @@ func Register(mux *http.ServeMux, d Deps) {
_ = d.Blob.Delete(r.Context(), int64(id))
_ = d.Mesh.SyncNow(r.Context())
}
http.Redirect(w, r, "/admin/items", http.StatusSeeOther)
http.Redirect(w, r, "/admin", http.StatusSeeOther)
})
mux.HandleFunc("/admin/mesh/syncnow", func(w http.ResponseWriter, r *http.Request) {