Fix link deleting

This commit is contained in:
Regalijan 2024-11-01 23:00:59 -04:00
parent b0b55135e8
commit 4e5a46e004
Signed by: regalijan
GPG Key ID: 5D4196DA269EF520

View File

@ -1,7 +1,7 @@
import { jsonError } from "../../common.js";
export async function onRequestDelete(context: RequestContext) {
const path = context.data.body?.id;
const path = context.params.id;
if (typeof path !== "string") return jsonError("Invalid path", 400);