export function api(rel_path){ return `${location.protocol}//${location.host.replace('5173','8080')}/api/${rel_path}`; }