From 70abb59ea0bbb398fa89eaf8dd08ee34ce1683a4 Mon Sep 17 00:00:00 2001 From: Savy Date: Sun, 4 Jan 2026 19:31:13 +0530 Subject: [PATCH] update verify email templ, update api docs path --- src/emails/verify.tsx | 10 ++++++---- src/routes/api.$.ts | 1 + 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/src/emails/verify.tsx b/src/emails/verify.tsx index 99934d9..6ba77bb 100644 --- a/src/emails/verify.tsx +++ b/src/emails/verify.tsx @@ -11,6 +11,7 @@ import { } from "@react-email/components"; interface VerifyEmailProps { + name: string; token: string; } @@ -19,8 +20,8 @@ const BASE_URL = ? "https://pecacm.com" : "http://localhost:3000"; -function VerifyEmail({ token }: VerifyEmailProps) { - const VERIFY_URL = `${BASE_URL}/api/verify-email/${token}`; +function VerifyEmail({ name, token }: VerifyEmailProps) { + const VERIFY_URL = `${BASE_URL}/api/auth/verify-email/${token}`; return ( @@ -62,7 +63,7 @@ function VerifyEmail({ token }: VerifyEmailProps) { as="h2" style={{ fontWeight: "500" }} > - Hello! + Hello {name}! You are receiving this email because you registered for PEC ACM. @@ -112,7 +113,8 @@ function VerifyEmail({ token }: VerifyEmailProps) { } VerifyEmail.PreviewProps = { - token: "qwertyuiopasdfghjklzxcvbnm1234567890", + name: "Eikichi Onizuka", + token: "b29eb4f0-9301-4390-bfec-9ab2fc4e91a6", } as VerifyEmailProps; export default VerifyEmail; diff --git a/src/routes/api.$.ts b/src/routes/api.$.ts index f96b507..cc6db80 100644 --- a/src/routes/api.$.ts +++ b/src/routes/api.$.ts @@ -12,6 +12,7 @@ const app = new Elysia({ }) .use( openapi({ + path: "/docs", documentation: { info: { title: "PEC ACM Community Management & Events Platform API", -- 2.51.2