Security: require agent API key; same-origin API behind login

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
MetatronCube Ops 2026-11-02 15:14:00 +00:00
parent 2af83967f5
commit ff06a5c99e

View File

@ -1,4 +1,4 @@
export const API_BASE = "https://rp.api.thedomainnest.com/api";
export const API_BASE = import.meta.env.VITE_API_BASE || "/api";
async function request(path, { method = "GET", body, headers } = {}) {
const response = await fetch(`${API_BASE}${path}`, {