Update push notification usage
This commit is contained in:
@ -16,13 +16,11 @@ func Test(ctx *aero.Context) string {
|
||||
return ctx.Error(http.StatusBadRequest, "Not logged in", nil)
|
||||
}
|
||||
|
||||
notification := &arn.Notification{
|
||||
user.SendNotification(&arn.PushNotification{
|
||||
Title: "Anime Notifier",
|
||||
Message: "Yay, it works!",
|
||||
Icon: "https://" + ctx.App.Config.Domain + "/images/brand/220.png",
|
||||
}
|
||||
|
||||
user.SendNotification(notification)
|
||||
})
|
||||
|
||||
return "ok"
|
||||
}
|
||||
|
Reference in New Issue
Block a user