merch api

This commit is contained in:
nquidox 2025-09-22 19:30:37 +03:00
parent fbfcac3bb0
commit 402db5e9ca

16
src/api/merch.js Normal file
View file

@ -0,0 +1,16 @@
import { apiClient } from '@/services/apiClient.js'
export const useMerchApi = () => {
const deleteMerch = async (uuid) => {
try {
const response = await apiClient.delete(`/merch/${uuid}`)
return response.status
} catch (error) {
return error
}
}
return {
deleteMerch,
}
}