Skip to content

Commit

Permalink
[#21] Change baseAdapter request function argument name from param to…
Browse files Browse the repository at this point in the history
… requestOption
  • Loading branch information
liamstevens111 committed Mar 1, 2023
1 parent 1385ce6 commit 9d0540f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/adapters/baseAdapter..ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@ import requestManager, { RequestParamsType } from 'lib/requestManager';
class BaseAdapter {
static baseUrl = process.env.REACT_APP_API_ENDPOINT;

getRequest(endpoint: string, params: RequestParamsType) {
return requestManager('GET', `${BaseAdapter.baseUrl}/${endpoint}`, params);
getRequest(endpoint: string, requestOption: RequestParamsType) {
return requestManager('GET', `${BaseAdapter.baseUrl}/${endpoint}`, requestOption);
}

postRequest(endpoint: string, params: RequestParamsType) {
return requestManager('POST', `${BaseAdapter.baseUrl}/${endpoint}`, params);
postRequest(endpoint: string, requestOption: RequestParamsType) {
return requestManager('POST', `${BaseAdapter.baseUrl}/${endpoint}`, requestOption);
}
}

Expand Down

0 comments on commit 9d0540f

Please sign in to comment.