Merge branch 'master' of gitlab.com:paymailcoinclient/webclient

This commit is contained in:
Senad Uka
2018-08-05 16:26:34 +02:00
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" });
}
};