Skip to content
This repository has been archived by the owner on Nov 20, 2024. It is now read-only.

Commit

Permalink
style: Format code with prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
deepsource-autofix[bot] authored and DanSnow committed Jun 5, 2023
1 parent 6229338 commit eccf2b9
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 13 deletions.
24 changes: 12 additions & 12 deletions packages/karbon/src/module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -334,37 +334,37 @@ const karbon = defineNuxtModule<ModuleOptions>({
})

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,
})

Expand Down
2 changes: 1 addition & 1 deletion packages/karbon/src/runtime/routes/_snapshot.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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<string, string[]> = await groupsResponse.json()
Expand Down

0 comments on commit eccf2b9

Please sign in to comment.