mirror of
https://git.selfprivacy.org/SelfPrivacy/selfprivacy-rest-api.git
synced 2024-11-25 21:41:27 +00:00
Updated domain read mechanism
This commit is contained in:
parent
7ba0c5820d
commit
0b5c0de5a3
2
main.py
2
main.py
|
@ -14,7 +14,7 @@ def uname():
|
|||
@app.route("/getDKIM", methods=["GET"])
|
||||
def getDkimKey():
|
||||
with open("/var/domain") as domainFile:
|
||||
domain = domainFile.readlines()
|
||||
domain = domainFile.readline()
|
||||
dkim = subprocess.check_output(["cat", "/var/dkim/" + domain + ".selector.txt"])
|
||||
return jsonify(dkim)
|
||||
@app.route("/pythonVersion", methods=["GET"])
|
||||
|
|
Loading…
Reference in a new issue