Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 'use strict';
- const
- moment = require('moment');
- module.exports.helloWorld = (event, context, callback) => {
- const response = {
- statusCode: 200,
- headers: {
- 'Access-Control-Allow-Origin': '*', // Required for CORS support to work
- },
- body: JSON.stringify({
- message: `Today is ${moment().format('DD/MMM/YYYY')}`
- }),
- };
- callback(null, response);
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement