From 9d0540f069e38e276483c8c78f9c1822a03c36a1 Mon Sep 17 00:00:00 2001 From: Liam Stevens <8955671+liamstevens111@users.noreply.github.com> Date: Wed, 1 Mar 2023 11:33:20 +0700 Subject: [PATCH] [#21] Change baseAdapter request function argument name from param to requestOption --- src/adapters/baseAdapter..ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/adapters/baseAdapter..ts b/src/adapters/baseAdapter..ts index 530dd38..2cf9ff3 100644 --- a/src/adapters/baseAdapter..ts +++ b/src/adapters/baseAdapter..ts @@ -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); } }