Skip to content

Commit

Permalink
Test
Browse files Browse the repository at this point in the history
  • Loading branch information
ehmicky committed Oct 27, 2020
1 parent 0979636 commit 3ad7f22
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
1 change: 1 addition & 0 deletions functions/dynamic/thing.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
module.exports = () => Date.now()
8 changes: 8 additions & 0 deletions functions/time.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
const now = require('./dynamic/thing')
exports.handler = async event => {
const subject = event.queryStringParameters.name || 'World'
return {
statusCode: 200,
body: `Hello ${subject}! It is ${now()}`,
}
}

0 comments on commit 3ad7f22

Please sign in to comment.