mirror of
https://github.com/ajayyy/SponsorBlockServer.git
synced 2025-12-11 14:07:09 +03:00
remove extra async and extra utils
This commit is contained in:
@@ -1,5 +0,0 @@
|
||||
import { config } from "../../src/config";
|
||||
|
||||
export function getbaseURL(): string {
|
||||
return `http://localhost:${config.port}`;
|
||||
}
|
||||
@@ -1,12 +1,8 @@
|
||||
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(),
|
||||
const defaultConfig: AxiosRequestConfig = {
|
||||
baseURL: `http://localhost:${config.port}`,
|
||||
validateStatus: (status) => status < 500
|
||||
};
|
||||
|
||||
|
||||
@@ -1,11 +0,0 @@
|
||||
/**
|
||||
* Duplicated from Mocha types. TypeScript doesn't infer that type by itself for some reason.
|
||||
*/
|
||||
export type Done = (err?: any) => void;
|
||||
|
||||
export const postJSON = {
|
||||
method: "POST",
|
||||
headers: {
|
||||
"Content-Type": "application/json",
|
||||
},
|
||||
};
|
||||
Reference in New Issue
Block a user