11 lines
447 B
TypeScript

import { NextResponse } from "next/server";
import { auth } from "@/app/(auth)/auth";
import { executeExtendPOST } from "@/lib/canvas/operations/extend";
export const runtime = "nodejs";
export const maxDuration = 180;
export async function POST(request: Request) {
const session = await auth();
if (!session?.user?.id) return NextResponse.json({ error: "未登录" }, { status: 401 });
return executeExtendPOST(request, session.user.id);
}