mirror of
https://github.com/ajayyy/SponsorBlockServer.git
synced 2024-11-10 09:07:47 +01:00
9 lines
287 B
TypeScript
9 lines
287 B
TypeScript
import { config } from "../../src/config";
|
|
import axios, { AxiosRequestConfig } from "axios";
|
|
|
|
const defaultConfig: AxiosRequestConfig = {
|
|
baseURL: `http://localhost:${config.port}`,
|
|
validateStatus: (status) => status < 500
|
|
};
|
|
|
|
export const client = axios.create(defaultConfig);
|