Files
NetAlertX/front/js/api.js
2026-01-28 02:13:04 +00:00

13 lines
274 B
JavaScript

function getApiBase()
{
let apiBase = getSetting("BACKEND_API_URL");
if(apiBase == "")
{
// Default to the same-origin proxy bridge
apiBase = "/server";
}
// Remove trailing slash for consistency
return apiBase.replace(/\/$/, '');
}