mirror of
https://github.com/langgenius/dify.git
synced 2026-05-06 10:28:10 +08:00
use new get avatar api
This commit is contained in:
@ -397,3 +397,7 @@ export const resetEmail = (body: { new_email: string; token: string }) =>
|
||||
|
||||
export const checkEmailExisted = (body: { email: string }) =>
|
||||
post<CommonResponse>('/account/change-email/check-email-unique', { body }, { silent: true })
|
||||
|
||||
export const getAvatar: Fetcher<{ avatar_url: string }, { avatar: string }> = ({ avatar }) => {
|
||||
return get<{ avatar_url: string }>(`/account/avatar?avatar=${avatar}`)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user