MCPcopy Index your code
hub / github.com/rolling-scopes/rsschool-app / createRequestFunction

Function createRequestFunction

client/src/api/common.ts:133–138  ·  view source on GitHub ↗
(axiosArgs: RequestArgs, globalAxios: AxiosInstance, BASE_PATH: string, configuration?: Configuration)

Source from the content-addressed store, hash-verified

131 * @export
132 */
133export const createRequestFunction = function (axiosArgs: RequestArgs, globalAxios: AxiosInstance, BASE_PATH: string, configuration?: Configuration) {
134 return <T = unknown, R = AxiosResponse<T>>(axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => {
135 const axiosRequestArgs = {...axiosArgs.options, url: (configuration?.basePath || basePath) + axiosArgs.url};
136 return axios.request<T, R>(axiosRequestArgs);
137 };
138}

Callers 15

createActivityFunction · 0.90
createActivityWebhookFunction · 0.90
getActivityFunction · 0.90
createAlertFunction · 0.90
deleteAlertFunction · 0.90
getAlertsFunction · 0.90
updateAlertFunction · 0.90
githubCallbackFunction · 0.90
githubLoginFunction · 0.90
githubLogoutFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected