Files
old-web/ma-api/handler.js

56 lines
1.4 KiB
JavaScript
Raw Normal View History

2019-03-07 06:24:08 +01:00
'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 };
};