diff --git a/ASAservers.html b/ASAservers.html index 0ac760e..5fd0f11 100644 --- a/ASAservers.html +++ b/ASAservers.html @@ -418,7 +418,7 @@ document.getElementById('y').textContent = new Date().getFullYear(); // === CONFIG (same API + servers as your current page) === - const API = 'http://10.1.10.64:5317/api/status'; + const API = 'https://api.oblistudios.com/api/status'; const SERVERS = [ { name: 'The Island (PvP)', host: '10.1.10.64', port: 27015 }, diff --git a/ASAshop.html b/ASAshop.html index af1df24..a2b449f 100644 --- a/ASAshop.html +++ b/ASAshop.html @@ -724,7 +724,7 @@ let remaining = 12; async function refreshRemaining() { try { - const r = await fetch('/api/inventory'); const j = await r.json(); + const r = await fetch('http://10.1.10.195:3000/api/inventory', { credentials: 'include' }); const j = await r.json(); remaining = j.remaining; document.querySelectorAll('[data-remaining] .remN').forEach(s => s.textContent = remaining); // Disable all three server buttons if none left: