frontend/pages/api/fetch.ts
2022-10-22 00:34:07 +03:00

13 lines
166 B
TypeScript

import axios from "axios"
import { host } from "./consts"
export const fetcher = axios.create(
{
baseURL: host,
timeout: 5000,
}
)