Skip to content
This repository was archived by the owner on Jun 22, 2024. It is now read-only.

Commit 047d774

Browse files
committed
fix: updated api method
1 parent d42ed8d commit 047d774

File tree

3 files changed

+3
-5
lines changed

3 files changed

+3
-5
lines changed

playground/nuxt-layer/emails/TestEmail.vue

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -59,9 +59,7 @@ const tokens = await codeToThemedTokens('<div class="foo">bar</div>', {
5959
<EText class="text-black text-[14px] leading-[24px]">
6060
Hello {{ username }},
6161
</EText>
62-
<EText class="text-black text-[14px] leading-[24px]">
63-
{{ $vueEmail.baseUrl }}
64-
</EText>
62+
6563
<EText class="text-black text-[14px] leading-[24px]">
6664
<strong>bukinoshita</strong> (
6765
<ELink

src/module.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -129,9 +129,9 @@ export default defineNuxtModule<ModuleOptions>({
129129
lazy: true,
130130
})
131131
addServerHandler({
132-
handler: resolve('./runtime/server/api/render/[file].get'),
132+
handler: resolve('./runtime/server/api/render/[file].post'),
133133
route: '/api/render/:file',
134-
method: 'get',
134+
method: 'post',
135135
lazy: true,
136136
})
137137

0 commit comments

Comments
 (0)