7 lines
189 B
TypeScript
7 lines
189 B
TypeScript
|
import { useApiFetch } from "#imports";
|
||
|
|
||
|
export async function deleteStory(id: number) {
|
||
|
await useApiFetch(`/story/${id}`, { method: "delete" });
|
||
|
await navigateTo("/my-stuff/stories");
|
||
|
}
|