Code & Deploy
Code
Code Review
Models
Repos
Toggle menu
Code
Code Review
Models
Repos
Sign in
Sign in
@setoelkahfi
/
tower-of-bazel
tower-of-bazel
/
frontend
/
splitfire-desktop
/
lib
/
axios.ts
Code
Commits
Issues
Pulls
Sessions
CI/CD
feature/share-libs
feature/share-libs
main
ts
12 lines
246 Bytes
Copy permalink
Copy
Raw
1
import
axios
from
"
axios
"
;
2
3
let
host
=
process
.
env
.
REACT_APP_SPLITFIRE_API_HOST
;
4
5
const
client
=
axios
.
create
({
6
baseURL
:
`https://
${
host
}
/api/v1/`
,
7
headers
:
{
8
"
Content-Type
"
:
"
application/json
"
,
9
},
10
});
11
12
export
default
client
;