Skip to content

Commit

Permalink
Axios library
Browse files Browse the repository at this point in the history
Import
  • Loading branch information
Perslay committed Feb 14, 2024
1 parent e55e219 commit 651feb1
Show file tree
Hide file tree
Showing 3 changed files with 157 additions and 0 deletions.
152 changes: 152 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
"url": "https://github.com/goitacademy/parcel-project-template/issues"
},
"dependencies": {
"axios": "^1.6.7",
"modern-normalize": "^1.1.0"
},
"devDependencies": {
Expand Down
4 changes: 4 additions & 0 deletions src/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
import axios from 'axios';

axios.defaults.headers.common['x-api-key'] =
'live_E41oW7TQeyZPbpWGQQHegvg3I5o2ZS6Oik46a7C42PktGiUWsKCBBexsIii8F6Xa';

0 comments on commit 651feb1

Please sign in to comment.