import { proxyBackendJson } from "@/lib/backend"; import type { TaskDetail } from "@/lib/types"; type Params = { params: Promise<{ id: string }>; }; export async function POST(_request: Request, { params }: Params) { const { id } = await params; return proxyBackendJson(`/mobile/tasks/${encodeURIComponent(id)}/complete`, { method: "POST" }); }