Added imagekit optimization support

This commit is contained in:
2025-07-29 17:52:39 +03:30
parent 48b893a403
commit 051408fcdd
6 changed files with 43 additions and 5 deletions

View File

@@ -53,6 +53,8 @@ func (ps *AdminDashboardHandler) RejectMedia(c *gin.Context) {
func (ps *AdminDashboardHandler) GetMedia(c *gin.Context) {
media := ps.PostService.GetMedia()
media.PreviewUrl = services.GetPreviewUrl(media.PreviewUrl)
media.RemoteUrl = services.GetPreviewUrl(media.RemoteUrl)
c.JSON(http.StatusOK, media)
}