mirror of
https://github.com/fosrl/pangolin.git
synced 2025-08-13 22:29:25 +02:00
added axios client
This commit is contained in:
parent
3c69acaab7
commit
29777da430
7 changed files with 81 additions and 41 deletions
11
src/api/index.ts
Normal file
11
src/api/index.ts
Normal file
|
@ -0,0 +1,11 @@
|
|||
import axios from "axios";
|
||||
|
||||
export const api = axios.create({
|
||||
baseURL: `http://${process.env.NEXT_PUBLIC_SITE_DOMAIN || "localhost:3000"}/api/v1`,
|
||||
timeout: 10000,
|
||||
headers: {
|
||||
"Content-Type": "application/json",
|
||||
},
|
||||
});
|
||||
|
||||
export default api;
|
Loading…
Add table
Add a link
Reference in a new issue