mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-11-28 12:23:24 +01:00
Merge branch 'main' into data-driven
This commit is contained in:
3 files changed
+18
-20
No files matched your search
@@ -1,11 +1,15 @@
|
||||
import type { BlitzGlossary } from "../types";
|
||||
import { BlitzGlossary } from "../types";
|
||||
|
||||
export const WOTB_GLOSSARY_DOMAIN = "https://na.wotblitz.com";
|
||||
export const WOTB_GLOSSARY_PATH = "api/glossary/stuff";
|
||||
|
||||
export async function fetchGlossary(locale: string) {
|
||||
const response = await fetch(
|
||||
`${WOTB_GLOSSARY_DOMAIN}/${locale}/${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