summary refs log tree commit diff
path: root/synapse_topology/webui/src/js/api/index.js
diff options
context:
space:
mode:
Diffstat (limited to 'synapse_topology/webui/src/js/api/index.js')
-rw-r--r--synapse_topology/webui/src/js/api/index.js23
1 files changed, 10 insertions, 13 deletions
diff --git a/synapse_topology/webui/src/js/api/index.js b/synapse_topology/webui/src/js/api/index.js

index c839b8a78c..cd9e4bfb2b 100644 --- a/synapse_topology/webui/src/js/api/index.js +++ b/synapse_topology/webui/src/js/api/index.js
@@ -16,17 +16,6 @@ export const getServerName = () => fetchAbs(SERVER_NAME) .then(res => res.json()) -export const postServerName = (servername, consent) => - fetchAbs( - SERVER_NAME, - { - method: 'POST', - body: JSON.stringify({ - "server_name": servername, - "report_stats": consent, - }), - }, - ) export const postCertPaths = (certPath, certKeyPath) => fetchAbs( @@ -66,8 +55,16 @@ export const testPorts = (ports) => }, ).then(res => res.json()) -export const getSecretkey = () => - fetchAbs(SECRET_KEY) +export const getSecretkey = serverName => + fetchAbs( + SECRET_KEY, + { + method: 'POST', + body: JSON.stringify({ + server_name: serverName, + }) + } + ) .then(res => res.json()) .then(json => json.secret_key)