feat: add services
This commit is contained in:
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",
|
||||||
|
});
|
||||||
Reference in New Issue
Block a user