change prices &...

This commit is contained in:
2026-06-03 11:57:40 +03:30
parent f4b98576f5
commit b055cd4a5d
16 changed files with 305 additions and 25 deletions
+15
View File
@@ -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)
}