Ordis 9c436699f9 Basic purchasing + custom purchasing API
Endpoint for custom API: https://localhost:443/custom/addItem
example request:
{
    "type": "Weapon",
    "internalName": "/Lotus/Weapons/Grineer/Pistols/GrineerMicrowavegun/GrnMicrowavePistol",
    "accountId": "6488fd2e7bec200069ca4242"
}
2023-06-14 01:41:24 +02:00

19 lines
575 B
TypeScript

import express from "express";
import config from "@/config.json";
const cacheRouter = express.Router();
cacheRouter.get("/B.Cache.Dx11.bin.*", (_req, res) => {
res.sendFile("static/data/B.Cache.Dx11_33.0.6.bin", { root: "./" });
});
cacheRouter.get("/B.Cache.Windows_en.bin*", (_req, res) => {
res.sendFile("static/data/B.Cache.Windows_en_33.0.10.bin", { root: "./" });
});
cacheRouter.get(/^\/origin\/([a-zA-Z0-9]+)\/H\.Cache\.bin.*$/, (_req, res) => {
res.sendFile(`static/data/H.Cache_${config.version}.bin`, { root: "./" });
});
export { cacheRouter };