Seth0330 commited on
Commit
a440daa
·
verified ·
1 Parent(s): 8583ef9

Create frontend/src/api/client.js

Browse files
Files changed (1) hide show
  1. frontend/src/api/client.js +10 -0
frontend/src/api/client.js ADDED
@@ -0,0 +1,10 @@
 
 
 
 
 
 
 
 
 
 
 
1
+ import axios from "axios";
2
+
3
+ const api = axios.create({
4
+ baseURL: "/api", // same domain, backend mounted under /api
5
+ headers: {
6
+ "Content-Type": "application/json"
7
+ }
8
+ });
9
+
10
+ export default api;