56 lines
1.4 KiB
JavaScript
56 lines
1.4 KiB
JavaScript
|
|
'use strict';
|
||
|
|
|
||
|
|
module.exports.sendnotification = async (event, context) => {
|
||
|
|
return {
|
||
|
|
statusCode: 200,
|
||
|
|
body: JSON.stringify({
|
||
|
|
message: 'Send notification!',
|
||
|
|
input: event,
|
||
|
|
}),
|
||
|
|
};
|
||
|
|
|
||
|
|
// Use this code if you don't use the http event with the LAMBDA-PROXY integration
|
||
|
|
// return { message: 'Go Serverless v1.0! Your function executed successfully!', event };
|
||
|
|
};
|
||
|
|
|
||
|
|
|
||
|
|
module.exports.getitems = async (event, context) => {
|
||
|
|
return {
|
||
|
|
statusCode: 200,
|
||
|
|
body: JSON.stringify({
|
||
|
|
message: 'Get Items',
|
||
|
|
input: event,
|
||
|
|
}),
|
||
|
|
};
|
||
|
|
|
||
|
|
// Use this code if you don't use the http event with the LAMBDA-PROXY integration
|
||
|
|
// return { message: 'Go Serverless v1.0! Your function executed successfully!', event };
|
||
|
|
};
|
||
|
|
|
||
|
|
module.exports.marketalerts = async (event, context) => {
|
||
|
|
return {
|
||
|
|
statusCode: 200,
|
||
|
|
body: JSON.stringify({
|
||
|
|
message: 'Market alerts',
|
||
|
|
input: event,
|
||
|
|
}),
|
||
|
|
};
|
||
|
|
|
||
|
|
// Use this code if you don't use the http event with the LAMBDA-PROXY integration
|
||
|
|
// return { message: 'Go Serverless v1.0! Your function executed successfully!', event };
|
||
|
|
};
|
||
|
|
|
||
|
|
module.exports.payforalert = async (event, context) => {
|
||
|
|
return {
|
||
|
|
statusCode: 200,
|
||
|
|
body: JSON.stringify({
|
||
|
|
message: 'Pay for alert',
|
||
|
|
input: event,
|
||
|
|
}),
|
||
|
|
};
|
||
|
|
|
||
|
|
// Use this code if you don't use the http event with the LAMBDA-PROXY integration
|
||
|
|
// return { message: 'Go Serverless v1.0! Your function executed successfully!', event };
|
||
|
|
};
|
||
|
|
|