feat: Implement UserProfiles

This commit is contained in:
swve 2025-03-30 22:40:01 +02:00
parent 1bbb0269a3
commit 3b5c4f9d92
14 changed files with 1729 additions and 19 deletions

View file

@ -16,6 +16,15 @@ export async function getUser(user_id: string, access_token: string) {
return res
}
export async function getUserByUsername(username: string, access_token: string) {
const result = await fetch(
`${getAPIUrl()}users/username/${username}`,
RequestBodyWithAuthHeader('GET', null, null, access_token)
)
const res = await errorHandling(result)
return res
}
export async function updateUserAvatar(
user_uuid: any,
avatar_file: any,