Receiving push notifications
This commit is contained in:
33
api/controllers/push.js
Normal file
33
api/controllers/push.js
Normal 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" });
|
||||
|
||||
}
|
||||
|
||||
|
||||
};
|
||||
Reference in New Issue
Block a user