This commit is contained in:
2022-11-11 16:29:38 +09:00
commit 584f181bdb
13 changed files with 516 additions and 0 deletions

13
http/axios.js Normal file
View File

@@ -0,0 +1,13 @@
const axios = require("axios");
axios
.post("https://whatever.com/todos", {
todo: "Buy the milk",
})
.then((res) => {
console.log(`statusCode: ${res.status}`);
console.log(res);
})
.catch((error) => {
console.error(error);
});