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" });
}
};

View File

@@ -0,0 +1 @@
google-site-verification: google65607aa129b18fc0.html

View File

@@ -38,7 +38,9 @@ module.exports.routes = {
* not match any of those, it is matched against static assets. * * not match any of those, it is matched against static assets. *
* * * *
***************************************************************************/ ***************************************************************************/
'/pushnotifications': {
action: 'push'
},
// ╔═╗╔═╗╦ ╔═╗╔╗╔╔╦╗╔═╗╔═╗╦╔╗╔╔╦╗╔═╗ // ╔═╗╔═╗╦ ╔═╗╔╗╔╔╦╗╔═╗╔═╗╦╔╗╔╔╦╗╔═╗
// ╠═╣╠═╝║ ║╣ ║║║ ║║╠═╝║ ║║║║║ ║ ╚═╗ // ╠═╣╠═╝║ ║╣ ║║║ ║║╠═╝║ ║║║║║ ║ ╚═╗