#143: set tok_<id> cookie in create handlers so the created banner can show the token (QA)
CI / test (pull_request) Successful in 29s
CI / docker (pull_request) Skipped

This commit is contained in:
fen
2026-09-10 08:37:07 -05:00
parent d7b51f02b6
commit 00aaafeb3c
3 changed files with 121 additions and 12 deletions
+1
View File
@@ -242,6 +242,7 @@ func (a *apiServer) handleCreatePasteMultipart(w http.ResponseWriter, r *http.Re
return
}
setDeletionTokenCookie(w, created.ID, created.DeletionToken) // #143
resp := map[string]any{
"id": created.ID,
"deletion_token": created.DeletionToken,