Skip to content

Commit 6f71578

Browse files
committed
Add axios examples
1 parent 5f82e4d commit 6f71578

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

axios/getreq.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
#!/usr/bin/env node
2+
const axios = require("axios");
3+
4+
axios.get("http://webcode.me").then(resp => {
5+
console.log(resp.data);
6+
});
7+

0 commit comments

Comments
 (0)