api
This commit is contained in:
@@ -888,8 +888,8 @@
|
||||
// apiBase kommt aus fakecheck.core.js (detectApiBase)
|
||||
const apiBase = (cfg && cfg.apiBase) ? cfg.apiBase : "";
|
||||
const base = apiBase.replace(/\/+$/, "");
|
||||
// Fallback: falls apiBase aus irgendeinem Grund leer ist, lokal auf /api routen
|
||||
const url = base ? (base + "/browser.quick.test") : "/api/browser.quick.test";
|
||||
// v1-Endpunkt
|
||||
const url = base ? (base + "/v1/browser.quick.test") : "/api/v1/browser.quick.test";
|
||||
|
||||
try {
|
||||
const response = await fetch(url, {
|
||||
|
||||
Reference in New Issue
Block a user