From 01d05e40a9b5ff1c97a587d5fe2617b77c54212d Mon Sep 17 00:00:00 2001 From: Jorik Schellekens Date: Tue, 27 Aug 2019 14:12:13 +0100 Subject: Remove use of servername endpoint --- synapse_topology/webui/src/js/api/index.js | 23 ++++++++++------------- 1 file changed, 10 insertions(+), 13 deletions(-) (limited to 'synapse_topology/webui/src/js/api/index.js') 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) -- cgit 1.5.1