(misc) Add constants for the app data directory & URLs for querying the miHoYo launcher API

This commit is contained in:
KingRainbow44
2023-11-29 23:51:07 -05:00
parent a0206b0cc5
commit e036b0f2cc

View File

@@ -1,4 +1,13 @@
import { appDataDir } from "@tauri-apps/api/path";
export const AppDataPath = (await appDataDir()).slice(0, -1);
export const PageRoutes = {
HOME: "/",
SETTINGS: "/settings"
};
export const LauncherUrls = {
GENSHIN_IMPACT: "https://sdk-os-static.mihoyo.com/hk4e_global/mdk/launcher/api/content?filter_adv=false&key=gcStgarh&language=en-us&launcher_id=10",
STAR_RAIL: "https://hkrpg-launcher-static.hoyoverse.com/hkrpg_global/mdk/launcher/api/content?filter_adv=false&key=vplOVX8Vn7cwG8yb&language=en-us&launcher_id=35"
};