feat: add services

This commit is contained in:
EsioFreitas
2022-12-07 21:03:47 -03:00
committed by geovanne97
parent 979e5f9fb1
commit 3d78620064
3 changed files with 23 additions and 7933 deletions

14
src/services/index.ts Normal file
View File

@@ -0,0 +1,14 @@
/* eslint-disable @typescript-eslint/no-non-null-assertion */
import axios from "axios";
const defaultConfig = {
"Content-Type": "application/json",
"Access-Control-Allow-Origin": "*"
};
const api = axios.create({
...defaultConfig,
baseURL: "http://localhost:8000",
});
export default api;