push notifications working again
This commit is contained in:
@ -58,8 +58,8 @@ const Notification = async (req, res) => {
|
||||
}
|
||||
|
||||
|
||||
if (req.method == 'POST') {
|
||||
const { subscription, id, broadcast, title = 'Hello Web Push', message = 'Your web push notification is here!' } = req.body
|
||||
if (req.method == 'POST') {//title = "ССС", message = "Ще получите уведомление по този начин.")
|
||||
const { subscription, id, broadcast, title = 'ССОМ', message = 'Ще получавате уведомления така.' } = req.body
|
||||
if (broadcast) {
|
||||
await broadcastPush(title, message)
|
||||
res.statusCode = 200
|
||||
|
Reference in New Issue
Block a user