check for auth

This commit is contained in:
2025-11-05 18:15:20 +01:00
parent d479ddd7a0
commit 3d8f931c25

View File

@@ -1,9 +1,11 @@
import type { RequestHandler } from "express";
import { getAccountForRequest } from "../../services/loginService.ts";
import { getInventory } from "../../services/inventoryService.ts";
import { getStats } from "../../services/statsService.ts";
import type { IStatsClient } from "../../types/statTypes.ts";
const viewController: RequestHandler = async (req, res) => {
await getAccountForRequest(req);
const accountId = String(req.query.id ?? req.query.lookupId);
const inventory = await getInventory(accountId, "XPInfo");
const playerStats = await getStats(accountId);