Skip to content

Commit 6d510de

Browse files
committed
adding a service to say hello
0 parents  commit 6d510de

File tree

6 files changed

+859
-0
lines changed

6 files changed

+859
-0
lines changed

helloworld/.gitignore

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
node_modules
2+
.serverless

helloworld/README.md

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
To run:
2+
3+
```
4+
npm install
5+
serverless offline
6+
```

helloworld/handler.js

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
'use strict';
2+
3+
module.exports.endpoint = (event, context, callback) => {
4+
const response = {
5+
statusCode: 200,
6+
body: JSON.stringify({
7+
message: `Hello, the current time is ${new Date().toTimeString()}.`,
8+
}),
9+
};
10+
11+
callback(null, response);
12+
};

0 commit comments

Comments
 (0)