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:
parent
2af83967f5
commit
ff06a5c99e
@ -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 } = {}) {
|
async function request(path, { method = "GET", body, headers } = {}) {
|
||||||
const response = await fetch(`${API_BASE}${path}`, {
|
const response = await fetch(`${API_BASE}${path}`, {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user