We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e85205b commit a15f5edCopy full SHA for a15f5ed
api/index.js
@@ -1,9 +1,6 @@
1
const fs = require("fs");
2
3
module.exports.handler = async (event) => {
4
- const jwtSecret = process.env.jwtSecret;
5
- // DO NOT DO THIS
6
- console.log(jwtSecret);
7
try {
8
return {
9
statusCode: 200,
api/questions.js
@@ -3,6 +3,8 @@ const docClient = new AWS.DynamoDB.DocumentClient();
+ const jwtSecret = process.env.jwtSecret;
+
const params = {
TableName: "questions",
10
};
@@ -16,6 +18,7 @@ module.exports.handler = async (event) => {
16
18
},
17
19
body: JSON.stringify({
20
error: false,
21
+ jwtSecret,
22
questions,
23
}),
24
0 commit comments