diff --git a/proxy.php b/proxy.php new file mode 100644 index 0000000..039df73 --- /dev/null +++ b/proxy.php @@ -0,0 +1,62 @@ + 'Proxy error: ' . curl_error($ch)]); + curl_close($ch); + exit(); +} + +curl_close($ch); + +// Set the HTTP response code +http_response_code($httpCode); + +// Return the response +echo $response; +?> diff --git a/src/map.js b/src/map.js index 3b5ad71..206d2bf 100644 --- a/src/map.js +++ b/src/map.js @@ -1,6 +1,6 @@ import { createApp, reactive, ref, computed, watch, onMounted, toRaw } from '../lib/vue.esm-browser.js'; import * as ntools from './node-utils.js'; -const apiUrl = 'https://map.meshcore.dev/api/v1/nodes'; +const apiUrl = './proxy.php'; const types = { '1': 'Client',