unified API style

This commit is contained in:
p.loedige 2020-12-31 00:05:35 +01:00
parent 3075c0c5da
commit d3c654c253

2
app.py
View File

@ -22,7 +22,7 @@ def api_root():
"device_url_POST": {"output": "<value>"} "device_url_POST": {"output": "<value>"}
} }
@app.route('/XML', methods=["GET","POST"]) @app.route('/XML/', methods=["GET","POST"])
def xml_transfer(): def xml_transfer():
try: try:
#return the current config.xml #return the current config.xml