MCPcopy Index your code
hub / github.com/freeCodeCamp/freeCodeCamp / post

Function post

client/src/utils/ajax.ts:59–64  ·  view source on GitHub ↗
(
  path: string,
  body: unknown
)

Source from the content-addressed store, hash-verified

57}
58
59export function post<T = void>(
60 path: string,
61 body: unknown
62): Promise<ResponseWithData<T>> {
63 return request('POST', path, body);
64}
65
66function put<T = void>(
67 path: string,

Callers 13

postUpdate$Function · 0.90
addDonationFunction · 0.70
postChargeStripeFunction · 0.70
postChargeStripeCardFunction · 0.70
generateExamTokenFunction · 0.70
postReportUserFunction · 0.70
postDeleteAccountFunction · 0.70
postResetProgressFunction · 0.70
postUserTokenFunction · 0.70
postMsUsernameFunction · 0.70
postSaveChallengeFunction · 0.70

Calls 1

requestFunction · 0.85

Tested by

no test coverage detected