feat(api): lab5 return 202 on upload and allow queued attachments in messages
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user