feat: add services
This commit is contained in:
parent
979e5f9fb1
commit
a3a5600289
11
src/services/index.ts
Normal file
11
src/services/index.ts
Normal file
@ -0,0 +1,11 @@
|
||||
/* eslint-disable @typescript-eslint/no-non-null-assertion */
|
||||
import axios from "axios";
|
||||
|
||||
const defaultConfig = {
|
||||
"Content-Type": "application/json",
|
||||
};
|
||||
|
||||
export const api = axios.create({
|
||||
...defaultConfig,
|
||||
baseURL: "http://localhost:8000",
|
||||
});
|
Loading…
x
Reference in New Issue
Block a user