Add authenticated image previews and shorten canvas read locks
Foundry Go checks / check (push) Successful in 3m18s

This commit is contained in:
2026-11-06 21:36:07 +08:00
parent 630ed42d53
commit 67765c17f4
7 changed files with 472 additions and 0 deletions
+3
View File
@@ -345,6 +345,9 @@ func (s *service) canvas(w http.ResponseWriter, r *http.Request, project, accoun
return nil
}
if r.Method == http.MethodGet {
if err = tx.Rollback(); err != nil {
return err
}
w.Header().Set("X-Canvas-Schema-Version", strconv.Itoa(canvasSchema(document)))
setVersion(w, version)
reply(w, 200, response{"version": version, "document": document})