Skip to content

Commit

Permalink
bugfix
Browse files Browse the repository at this point in the history
  • Loading branch information
ARUMANDESU committed Jun 13, 2024
1 parent 0f3057e commit b323496
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions internal/handler/event/files.go
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ func (h *Handler) UploadFileHandler(c *gin.Context) {
return
}

c.JSON(http.StatusOK, gin.H{"url": url})
c.JSON(http.StatusOK, gin.H{"name": file.Name, "type": file.Type, "url": url})
}

func (h *Handler) UploadFilesHandler(c *gin.Context) {
Expand Down Expand Up @@ -203,7 +203,7 @@ func (h *Handler) UploadImageHandler(c *gin.Context) {
return
}

c.JSON(http.StatusOK, gin.H{"url": url})
c.JSON(http.StatusOK, gin.H{"name": file.Name, "type": file.Type, "url": url})
}

func (h *Handler) DeleteFileHandler(c *gin.Context) {
Expand Down

0 comments on commit b323496

Please sign in to comment.