mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-22 19:19:52 +02:00
feat: glossary cron
This commit is contained in:
1 parent
365c68aa4d
commit
c5e6f5e2eb
16 files changed
+367
-57
No files matched your search
@@ -0,0 +1,3 @@
|
||||
import { fetchGallery } from '@blitzkit/core';
|
||||
|
||||
export const awaitableGallery = fetchGallery();
|
||||
@@ -1,10 +0,0 @@
|
||||
import { assertSecret, type BlitzGlossary } from '@blitzkit/core';
|
||||
|
||||
export async function fetchGlossary(locale: string) {
|
||||
const response = await fetch(
|
||||
`${assertSecret(
|
||||
import.meta.env.WOTB_GLOSSARY_DOMAIN,
|
||||
)}/${locale}${assertSecret(import.meta.env.WOTB_GLOSSARY_PATH)}`,
|
||||
);
|
||||
return (await response.json()) as BlitzGlossary;
|
||||
}
|
||||
Reference in new issue
Block a user