Skip to content

Commit

Permalink
build: install axios
Browse files Browse the repository at this point in the history
  • Loading branch information
timepresent95 committed Aug 3, 2024
1 parent 74d93fb commit 39222da
Show file tree
Hide file tree
Showing 3 changed files with 95 additions and 13 deletions.
94 changes: 83 additions & 11 deletions package-lock.json

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

5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,11 @@
"test": "jest"
},
"dependencies": {
"@tanstack/react-query": "^5.51.18",
"@react-navigation/bottom-tabs": "^6.6.1",
"@react-navigation/native": "^6.1.18",
"@react-navigation/native-stack": "^6.11.0",
"@tanstack/react-query": "^5.51.18",
"axios": "^1.7.3",
"nativewind": "^2.0.11",
"react": "18.2.0",
"react-native": "0.74.3",
Expand Down Expand Up @@ -51,4 +52,4 @@
"node": ">=18"
},
"packageManager": "[email protected]+sha512.a6b2f7906b721bba3d67d4aff083df04dad64c399707841b7acf00f6b133b7ac24255f2652fa22ae3534329dc6180534e98d17432037ff6fd140556e2bb3137e"
}
}
9 changes: 9 additions & 0 deletions src/api/axios.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
import axios from 'axios';

const axiosInstance = axios.create({
baseURL: 'http://192.168.0.35:3030',
timeout: 5000,
withCredentials: true,
});

export default axiosInstance;

0 comments on commit 39222da

Please sign in to comment.