diff --git a/packages/karbon/src/module.ts b/packages/karbon/src/module.ts index 164bdab5..24a50951 100644 --- a/packages/karbon/src/module.ts +++ b/packages/karbon/src/module.ts @@ -334,37 +334,37 @@ const karbon = defineNuxtModule({ }) addServerHandler({ - route: "/api/_sitemap-urls", - handler: await resolver.resolve("./runtime/routes/api/_sitemap-urls"), + route: '/api/_sitemap-urls', + handler: await resolver.resolve('./runtime/routes/api/_sitemap-urls'), }) // Global custom field addServerHandler({ - route: "/_storipress/_custom-field.js", - handler: await resolver.resolve("./runtime/routes/custom-field"), + route: '/_storipress/_custom-field.js', + handler: await resolver.resolve('./runtime/routes/custom-field'), }) addServerHandler({ - route: "/_storipress/_custom-field.json", - handler: await resolver.resolve("./runtime/routes/custom-field"), + route: '/_storipress/_custom-field.json', + handler: await resolver.resolve('./runtime/routes/custom-field'), }) addServerHandler({ - route: "/_storipress/_snapshot", - handler: await resolver.resolve("./runtime/routes/_snapshot"), + route: '/_storipress/_snapshot', + handler: await resolver.resolve('./runtime/routes/_snapshot'), }) if (paywall.enable) { addServerHandler({ - route: "/api/decrypt-key", - handler: await resolver.resolve("./runtime/routes/api/decrypt-key"), + route: '/api/decrypt-key', + handler: await resolver.resolve('./runtime/routes/api/decrypt-key'), }) } - addStaticRoute({ route: '/_storipress/_site', handler: resolver.resolve("./runtime/routes/meta/site"), fullStatic }) + addStaticRoute({ route: '/_storipress/_site', handler: resolver.resolve('./runtime/routes/meta/site'), fullStatic }) addStaticRoute({ route: '/_storipress/_custom-field-group', - handler: resolver.resolve("./runtime/routes/custom-field-group"), + handler: resolver.resolve('./runtime/routes/custom-field-group'), fullStatic, }) diff --git a/packages/karbon/src/runtime/routes/_snapshot.ts b/packages/karbon/src/runtime/routes/_snapshot.ts index 84a6d906..3c82e20f 100644 --- a/packages/karbon/src/runtime/routes/_snapshot.ts +++ b/packages/karbon/src/runtime/routes/_snapshot.ts @@ -41,7 +41,7 @@ export default defineCachedEventHandler(async (event: H3Event) => { const nitro = useNitroApp() const links: string[] = [] - const groupsResponse = await nitro.localFetch("/_storipress/_custom-field-group.json", { + const groupsResponse = await nitro.localFetch('/_storipress/_custom-field-group.json', { method: 'GET', }) const groups: Record = await groupsResponse.json()