diff --git a/internal/api/v1/notification.go b/internal/api/v1/notification.go index 227c36b..536c2d2 100644 --- a/internal/api/v1/notification.go +++ b/internal/api/v1/notification.go @@ -43,8 +43,8 @@ func (nac *NotificationApiClient) SendNotification(c *gin.Context) { return } - host := c.Request.Host - successMessage, err := svc.SendNotification(host, notification) + referer := c.Request.Referer() + successMessage, err := svc.SendNotification(referer, notification) if err != nil { c.AbortWithStatusJSON(http.StatusInternalServerError, gin.H{ "message": helper.ValidateErrorResponse(err, "failed to send"),