Fixed the POST, PUT, and PATCH Axios service actions

This commit is contained in:
Christopher Allford 2020-07-01 12:31:20 -07:00
parent bc3e1b4555
commit b4c1f3ca8f
1 changed files with 3 additions and 3 deletions

View File

@ -58,7 +58,7 @@ export class AxiosAPIService implements APIService {
endpoint: string,
data?: any,
): Promise<APIResponse<T>> {
return this.client.post( endpoint, { data } );
return this.client.post( endpoint, data );
}
/**
@ -72,7 +72,7 @@ export class AxiosAPIService implements APIService {
endpoint: string,
data?: any,
): Promise<APIResponse<T>> {
return this.client.put( endpoint, { data } );
return this.client.put( endpoint, data );
}
/**
@ -86,7 +86,7 @@ export class AxiosAPIService implements APIService {
endpoint: string,
data?: any,
): Promise<APIResponse<T>> {
return this.client.patch( endpoint, { data } );
return this.client.patch( endpoint, data );
}
/**