feat(client): use new users endpoints (#59284)

This commit is contained in:
Oliver Eyton-Williams
2025-04-10 06:13:29 +02:00
committed by GitHub
parent 07e708890a
commit 2029b5fde2
+2 -2
View File
@@ -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(