change prices &...
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
import useAxios from '@/utils/useAxios'
|
||||
|
||||
export interface AvatarUploadResponse {
|
||||
id: number
|
||||
src?: string
|
||||
full_src?: string
|
||||
title?: string
|
||||
}
|
||||
|
||||
/** POST multipart — expects backend route POST /customer/avatar */
|
||||
export const uploadAvatar = async (file: File) => {
|
||||
const formData = new FormData()
|
||||
formData.append('file', file)
|
||||
return useAxios.postForm<AvatarUploadResponse>('/customer/avatar', formData)
|
||||
}
|
||||
Reference in New Issue
Block a user