Skip to content

Commit a766fd9

Browse files
committed
Update README.md
1 parent 8de99dc commit a766fd9

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

README.md

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2649,19 +2649,18 @@ Content-Security-Policy: default-src 'self' *.http://sometrustedwebsite.com
26492649
const express = require("express");
26502650
const app = express();
26512651
const axios = require("axios");
2652-
2652+
26532653
app.post("/user", async (req, res) => {
26542654
try {
2655-
const payload = { name: 'Aashita Iyer', email: 'aashita.iyer@email.com' };
2656-
2657-
const response =await axios.post('http://httpbin.org/post', payload);
2655+
const payload = { name: "Aashita Iyer", email: "aashita.iyer@email.com" };
2656+
const response = await axios.post("http://httpbin.org/post", payload);
26582657
console.log(response.data);
26592658
res.status(200).json(response.data);
26602659
} catch (err) {
26612660
res.status(500).json({ message: err });
26622661
}
26632662
});
2664-
2663+
26652664
app.listen(3000, function () {
26662665
console.log(`App listening at http://localhost:3000/`);
26672666
});

0 commit comments

Comments
 (0)