forked from mtusi2026/mtusi2026lab5
feat(attachments): accept uploads through staging and transactional outbox
This commit is contained in:
@@ -77,7 +77,7 @@ func (h *AttachmentHandler) Upload(w http.ResponseWriter, r *http.Request) {
|
||||
return
|
||||
}
|
||||
|
||||
httpx.WriteJSON(w, http.StatusCreated, dto.ToAttachmentResponse(att))
|
||||
httpx.WriteJSON(w, http.StatusAccepted, dto.ToAttachmentResponse(att))
|
||||
}
|
||||
|
||||
func (h *AttachmentHandler) Get(w http.ResponseWriter, r *http.Request) {
|
||||
|
||||
Reference in New Issue
Block a user