mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-05-28 18:26:54 +00:00
feat(client): use new users endpoints (#59284)
This commit is contained in:
committed by
GitHub
parent
07e708890a
commit
2029b5fde2
@@ -183,7 +183,7 @@ export function getUserProfile(
|
||||
username: string
|
||||
): Promise<ResponseWithData<UserProfileResponse>> {
|
||||
const responseWithData = get<{ entities?: ApiUser; result?: string }>(
|
||||
`/api/users/get-public-profile?username=${username}`
|
||||
`/users/get-public-profile?username=${username}`
|
||||
);
|
||||
return responseWithData.then(({ response, data }) => {
|
||||
const { result, user } = parseApiResponseToClientUser({
|
||||
@@ -216,7 +216,7 @@ export function getShowCert(
|
||||
export function getUsernameExists(
|
||||
username: string
|
||||
): Promise<ResponseWithData<boolean>> {
|
||||
return get(`/api/users/exists?username=${username}`);
|
||||
return get(`/users/exists?username=${username}`);
|
||||
}
|
||||
|
||||
export function getGenerateExam(
|
||||
|
||||
Reference in New Issue
Block a user