File tree 2 files changed +3
-5
lines changed
2 files changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -64,7 +64,7 @@ import { apiRequest } from './lib/apiRequest';
64
64
65
65
/*eslint-disable */
66
66
SchemaManager . prototype . getSchema = function ( callback ) : void {
67
- apiRequest ( 'GET' , 'schema.autobot.tf' , ' /schema')
67
+ apiRequest ( 'GET' , 'https:// schema.autobot.tf/schema' )
68
68
. then ( schema => {
69
69
this . setSchema ( schema , true ) ;
70
70
callback ( null , this . schema ) ;
Original file line number Diff line number Diff line change @@ -3,8 +3,7 @@ import filterAxiosError from '@tf2autobot/filter-axios-error';
3
3
4
4
export async function apiRequest < B > (
5
5
httpMethod : string ,
6
- domain : string ,
7
- path : string ,
6
+ url : string ,
8
7
params ?: Record < string , any > ,
9
8
data ?: Record < string , any > ,
10
9
headers ?: Record < string , unknown >
@@ -15,8 +14,7 @@ export async function apiRequest<B>(
15
14
16
15
const options : AxiosRequestConfig = {
17
16
method : httpMethod as Method ,
18
- url : path ,
19
- baseURL : domain ,
17
+ url,
20
18
headers : {
21
19
'User-Agent' : 'TF2Autobot@' + process . env . BOT_VERSION ,
22
20
...headers
You can’t perform that action at this time.
0 commit comments