Fix link deleting
This commit is contained in:
@ -1,7 +1,7 @@
|
|||||||
import { jsonError } from "../../common.js";
|
import { jsonError } from "../../common.js";
|
||||||
|
|
||||||
export async function onRequestDelete(context: RequestContext) {
|
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);
|
if (typeof path !== "string") return jsonError("Invalid path", 400);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user