Merge branch 'master' of gitlab.com:paymailcoinclient/webclient
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" });
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
};
|
||||||
1
assets/google65607aa129b18fc0.html
Normal file
1
assets/google65607aa129b18fc0.html
Normal file
@@ -0,0 +1 @@
|
|||||||
|
google-site-verification: google65607aa129b18fc0.html
|
||||||
@@ -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'
|
||||||
|
},
|
||||||
|
|
||||||
// ╔═╗╔═╗╦ ╔═╗╔╗╔╔╦╗╔═╗╔═╗╦╔╗╔╔╦╗╔═╗
|
// ╔═╗╔═╗╦ ╔═╗╔╗╔╔╦╗╔═╗╔═╗╦╔╗╔╔╦╗╔═╗
|
||||||
// ╠═╣╠═╝║ ║╣ ║║║ ║║╠═╝║ ║║║║║ ║ ╚═╗
|
// ╠═╣╠═╝║ ║╣ ║║║ ║║╠═╝║ ║║║║║ ║ ╚═╗
|
||||||
|
|||||||
Reference in New Issue
Block a user