mirror of
https://github.com/ajayyy/SponsorBlockServer.git
synced 2025-12-12 14:37:17 +03:00
everything to postClearCache
This commit is contained in:
13
test/utils/httpClient.ts
Normal file
13
test/utils/httpClient.ts
Normal file
@@ -0,0 +1,13 @@
|
||||
import { config } from "../../src/config";
|
||||
import axios, { AxiosRequestConfig } from "axios";
|
||||
|
||||
export function getbaseURL(): string {
|
||||
return `http://localhost:${config.port}`;
|
||||
}
|
||||
|
||||
export const defaultConfig: AxiosRequestConfig = {
|
||||
baseURL: getbaseURL(),
|
||||
validateStatus: (status) => status < 500
|
||||
};
|
||||
|
||||
export const client = axios.create(defaultConfig);
|
||||
Reference in New Issue
Block a user