Fix link deleting
This commit is contained in:
parent
b0b55135e8
commit
4e5a46e004
@ -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);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user