mirror of
https://github.com/Myzel394/kleckrelay-website.git
synced 2025-06-19 15:55:26 +02:00
feat: Add delete-alias.ts API
This commit is contained in:
parent
785a712eb7
commit
d786199111
10
src/apis/delete-alias.ts
Normal file
10
src/apis/delete-alias.ts
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
import {client} from "~/constants/axios-client"
|
||||||
|
import {SimpleDetailResponse} from "~/server-types"
|
||||||
|
|
||||||
|
export default async function deleteAlias(id: string): Promise<SimpleDetailResponse> {
|
||||||
|
const {data} = await client.delete(`${import.meta.env.VITE_SERVER_BASE_URL}/v1/report/${id}`, {
|
||||||
|
withCredentials: true,
|
||||||
|
})
|
||||||
|
|
||||||
|
return data
|
||||||
|
}
|
@ -52,3 +52,5 @@ export * from "./get-admin-settings"
|
|||||||
export {default as getAdminSettings} from "./get-admin-settings"
|
export {default as getAdminSettings} from "./get-admin-settings"
|
||||||
export * from "./update-admin-settings"
|
export * from "./update-admin-settings"
|
||||||
export {default as updateAdminSettings} from "./update-admin-settings"
|
export {default as updateAdminSettings} from "./update-admin-settings"
|
||||||
|
export * from "./delete-alias"
|
||||||
|
export {default as deleteAlias} from "./delete-alias"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user