From edbad6d89b5e5d38925bdd1a19fc9847a69b769c Mon Sep 17 00:00:00 2001 From: Sean Brydon Date: Mon, 18 Sep 2023 13:44:43 +0100 Subject: [PATCH] Add signup api notice --- apps/web/pages/api/auth/signup.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/apps/web/pages/api/auth/signup.ts b/apps/web/pages/api/auth/signup.ts index 3c245ee3e1..4e8b8a4f40 100644 --- a/apps/web/pages/api/auth/signup.ts +++ b/apps/web/pages/api/auth/signup.ts @@ -30,6 +30,11 @@ export default async function handler(req: RequestWithUsernameStatus, res: NextA ensureReqIsPost(req); ensureSignupIsEnabled(); + /** Im not sure its worth merging these two handlers. They are different enough to be separate. + * Calcom handles things like creating a stripe customer - which we dont need to do for self hosted. + * It also handles things like premium username. + * TODO: (SEAN) - Extract a lot of the logic from calcomHandler into a separate file and import it into both handlers. + */ if (IS_CALCOM) { return await calcomSignupHandler(req, res); }