Papermark is the open-source DocSend alternative and secure data rooms with built-in analytics and custom domains.
fix: res.end
Marc Seitz57c54ba04758
diff --git a/pages/api/links/index.ts b/pages/api/links/index.tsindex abbbb7c6..d9d81950 100644--- a/pages/api/links/index.ts+++ b/pages/api/links/index.ts@@ -10,7 +10,7 @@ export default async function handler(if (req.method === "POST") {const session = await getServerSession(req, res, authOptions);if (!session) {- return res.status(401).end({ error: "Unauthorized" });+ return res.status(401).end("Unauthorized");}const { documentId } = req.body;