feat(ancpi): extract Angular AJAX endpoints from ShowCartItems page

This commit is contained in:
AI Assistant
2026-03-23 01:37:45 +02:00
parent d367b5f736
commit 665a51d794
2 changed files with 61 additions and 18 deletions
@@ -245,6 +245,17 @@ export class EpayClient {
}
}
/* ── Raw HTML fetch (for page scraping) ─────────────────── */
async getRawHtml(url: string): Promise<string> {
const response = await this.client.get(url, {
timeout: DEFAULT_TIMEOUT_MS,
maxRedirects: 5,
validateStatus: () => true,
});
return String(response.data ?? "");
}
/* ── Credits ───────────────────────────────────────────────── */
async getCredits(): Promise<number> {