diff --git a/src/react-components/hub-create-panel.js b/src/react-components/hub-create-panel.js index 0caff0292001ee18d9ef247d160915cd59b1f273..4884bee6518d4234ea9addb55717cd24273bab50 100644 --- a/src/react-components/hub-create-panel.js +++ b/src/react-components/hub-create-panel.js @@ -44,7 +44,7 @@ class HubCreatePanel extends Component { createUrl = `https://dev.reticulum.io${createUrl}`; } - const res = await fetch("https://dev.reticulum.io/api/v1/hubs", { + const res = await fetch(createUrl, { body: JSON.stringify(payload), headers: { "content-type": "application/json" }, method: "POST"