wip
This commit is contained in:
21
app/api/email-template-test/route.ts
Normal file
21
app/api/email-template-test/route.ts
Normal file
@@ -0,0 +1,21 @@
|
||||
import { NextResponse } from "next/server";
|
||||
import { sendEmail } from "~/lib/services/mailer.service";
|
||||
|
||||
export const GET = async () => {
|
||||
const { renderInviteEmail } = await import('@kit/email-templates');
|
||||
|
||||
const html = await renderInviteEmail({
|
||||
language: 'en',
|
||||
teamName: 'Test Team',
|
||||
invitedUserEmail: 'test@example.com',
|
||||
productName: 'Test Product',
|
||||
teamLogo: 'https://placehold.co/100x100',
|
||||
inviter: 'John Doe',
|
||||
link: 'https://www.google.com',
|
||||
});
|
||||
|
||||
return NextResponse.json({
|
||||
html,
|
||||
length: html.html.length,
|
||||
});
|
||||
};
|
||||
Reference in New Issue
Block a user