mirror of
https://github.com/ajayyy/SponsorBlockServer.git
synced 2025-12-07 20:17:02 +03:00
remove extra async and extra utils
This commit is contained in:
@@ -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
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user