Files
wanderer/web/src/routes/api/v1/follow/[id]/+server.ts
2024-12-27 01:56:35 +01:00

14 lines
334 B
TypeScript

import { Collection, handleError, remove } from "$lib/util/api_util";
import { json, type RequestEvent } from "@sveltejs/kit";
export async function DELETE(event: RequestEvent) {
try {
const r = await remove(event, Collection.follows)
return json(r);
} catch (e: any) {
throw handleError(e)
}
}