merch api
This commit is contained in:
parent
fbfcac3bb0
commit
402db5e9ca
1 changed files with 16 additions and 0 deletions
16
src/api/merch.js
Normal file
16
src/api/merch.js
Normal 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,
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue