feat(api): lab5 return 202 on upload and allow queued attachments in messages

This commit is contained in:
Голиков Maximillian Антон
2026-11-07 10:52:00 +03:00
parent c34db41342
commit f4c6657a10
2 changed files with 3 additions and 3 deletions
@@ -52,7 +52,7 @@ func (h *AttachmentHandler) Upload(c *gin.Context) {
respondError(c, err)
return
}
c.JSON(http.StatusCreated, dto.AttachmentFromDomain(att))
c.JSON(http.StatusAccepted, dto.AttachmentFromDomain(att))
}
func (h *AttachmentHandler) Get(c *gin.Context) {