1
0

Add endpoint to check if server has been setup.

This commit is contained in:
Jorik Schellekens
2019-07-31 17:53:15 +01:00
parent a00ce82e46
commit ced3cb281a

View File

@@ -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()