Receiving push notifications

This commit is contained in:
2018-08-05 16:25:07 +02:00
parent 8a28915f87
commit c02d486a4f
3 changed files with 37 additions and 1 deletions

33
api/controllers/push.js Normal file
View File

@@ -0,0 +1,33 @@
module.exports = {
friendlyName: 'Push Notification',
description: 'Notify.',
inputs: {
message: {
type: 'json'
}
},
exits: {
},
fn: async function (inputs, exits) {
if (inputs.message)
console.log(inputs.message);
else console.log("No message specified");
return exits.success({ url: "//hamo.com" });
}
};