summary refs log tree commit diff
path: root/synapse_topology/controller/server/server.py
diff options
context:
space:
mode:
authorJorik Schellekens <joriks@matrix.org>2019-07-31 17:53:15 +0100
committerJorik Schellekens <joriks@matrix.org>2019-08-28 15:59:53 +0100
commitced3cb281a2e47deea0f49b97a09b66daeee0910 (patch)
treef34a02403b58a872d82a88a69893dbd71f935f00 /synapse_topology/controller/server/server.py
parentSome not too helpful docs. (diff)
downloadsynapse-ced3cb281a2e47deea0f49b97a09b66daeee0910.tar.xz
Add endpoint to check if server has been setup.
Diffstat (limited to 'synapse_topology/controller/server/server.py')
-rw-r--r--synapse_topology/controller/server/server.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/synapse_topology/controller/server/server.py b/synapse_topology/controller/server/server.py
index b5a79fba00..de2b3b5417 100644
--- a/synapse_topology/controller/server/server.py
+++ b/synapse_topology/controller/server/server.py
@@ -9,6 +9,11 @@ app = Klein()
 from . import error_handlers
 
 
+@app.route("/setup", methods=["GET"])
+def get_config_setup(request):
+    return json.dumps({model.constants.CONFIG_LOCK: model.config_in_use()})
+
+
 @app.route("/servername", methods=["GET"])
 def get_server_name(request):
     return model.get_server_name()