mirror of
https://github.com/tenrok/axios.git
synced 2026-06-20 20:00:40 +03:00
Update README.md (#1484)
adding in the necessary require statement (in nodejs).
This commit is contained in:
committed by
Justin Beckwith
parent
7d9a29ee4c
commit
ef2240a666
@@ -53,6 +53,8 @@ Using cdn:
|
|||||||
Performing a `GET` request
|
Performing a `GET` request
|
||||||
|
|
||||||
```js
|
```js
|
||||||
|
const axios = require('axios');
|
||||||
|
|
||||||
// Make a request for a user with a given ID
|
// Make a request for a user with a given ID
|
||||||
axios.get('/user?ID=12345')
|
axios.get('/user?ID=12345')
|
||||||
.then(function (response) {
|
.then(function (response) {
|
||||||
|
|||||||
Reference in New Issue
Block a user