Papermark is the open-source DocSend alternative and secure data rooms with built-in analytics and custom domains.
fix: make api a post request
Marc Seitz80e429231fe1
diff --git a/pages/api/report.ts b/pages/api/report.tsindex 40fc0edd..b0c44c42 100644--- a/pages/api/report.ts+++ b/pages/api/report.ts@@ -22,6 +22,12 @@ export default async function handler(req: NextApiRequest,res: NextApiResponse,) {+ // We only allow POST requests+ if (req.method !== "POST") {+ res.status(405).json({ message: "Method Not Allowed" });+ return;+ }+const { linkId, documentId, viewId, abuseType } = req.body as {linkId: string;documentId: string;