mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-11-25 23:23:21 +01:00
hide glossary
This commit is contained in:
1 file changed
+9
-8
@@ -1,11 +1,12 @@
|
||||
import { assertSecret } from "../blitzkit";
|
||||
import type { BlitzGlossary } from "../types";
|
||||
import { BlitzGlossary } from "../types";
|
||||
|
||||
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;
|
||||
// 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;
|
||||
|
||||
return {} as BlitzGlossary;
|
||||
}
|
||||
Reference in new issue
Block a user