Papermark is the open-source DocSend alternative and secure data rooms with built-in analytics and custom domains.
fix: properly respond on branding delete request
Marc Seitz204482dbed75
diff --git a/pages/api/teams/[teamId]/branding.ts b/pages/api/teams/[teamId]/branding.tsindex 6afd7651..32fe1909 100644--- a/pages/api/teams/[teamId]/branding.ts+++ b/pages/api/teams/[teamId]/branding.ts@@ -113,10 +113,10 @@ export default async function handle(},});- return res.status(200).json("Branding deleted");+ res.status(204).end();} else {// We only allow GET and DELETE requests- res.setHeader("Allow", ["GET", "POST", "PUT"]);+ res.setHeader("Allow", ["GET", "POST", "PUT", "DELETE"]);return res.status(405).end(`Method ${req.method} Not Allowed`);}}