2023-05-19 15:22:48 -03:00
|
|
|
import express from "express";
|
2024-05-15 21:55:59 +02:00
|
|
|
import buildConfig from "@/static/data/buildConfig.json";
|
2023-05-19 15:22:48 -03:00
|
|
|
|
|
|
|
const cacheRouter = express.Router();
|
|
|
|
|
|
|
|
cacheRouter.get("/B.Cache.Dx11.bin.*", (_req, res) => {
|
2023-05-23 20:42:06 -04:00
|
|
|
res.sendFile("static/data/B.Cache.Dx11_33.0.6.bin", { root: "./" });
|
2023-05-19 15:22:48 -03:00
|
|
|
});
|
|
|
|
|
|
|
|
cacheRouter.get("/B.Cache.Windows_en.bin*", (_req, res) => {
|
2023-05-23 20:42:06 -04:00
|
|
|
res.sendFile("static/data/B.Cache.Windows_en_33.0.10.bin", { root: "./" });
|
2023-05-19 15:22:48 -03:00
|
|
|
});
|
|
|
|
|
2023-08-05 22:48:56 +02:00
|
|
|
cacheRouter.get(/^\/origin\/[a-zA-Z0-9]+\/[0-9]+\/H\.Cache\.bin.*$/, (_req, res) => {
|
2024-05-15 21:55:59 +02:00
|
|
|
res.sendFile(`static/data/H.Cache_${buildConfig.version}.bin`, { root: "./" });
|
2023-05-19 15:22:48 -03:00
|
|
|
});
|
|
|
|
|
|
|
|
export { cacheRouter };
|