Skip to content

Papermark is the open-source DocSend alternative and secure data rooms with built-in analytics and custom domains.

424 B
Raw Blame
import { NextApiRequest, NextApiResponse } from "next";

export default async function handle(
  req: NextApiRequest,
  res: NextApiResponse,
) {
  if (req.method !== "POST") {
    res.setHeader("Allow", ["POST"]);
    return res.status(405).json({ error: "Method not allowed" });
  }

  return res.status(410).json({
    error:
      "Bulk link imports must use the resource-scoped document or dataroom endpoint.",
  });
}