Added path independent checks as a proof-of-concept

pull/2/head
Illia Chub 2021-01-04 15:52:08 +02:00
parent 08fd54dfee
commit 9f74fb3d4e
1 changed files with 2 additions and 2 deletions

View File

@ -13,10 +13,10 @@ def uname():
return jsonify(uname)
@app.route("/getDKIM", methods=["GET"])
def getDkimKey():
with open("/var/domain") as domainFile:
with open("domain") as domainFile:
domain = domainFile.readline()
domain = domain.rstrip("\n")
dkim = subprocess.check_output(["cat", "/var/dkim/" + domain + ".selector.txt"])
dkim = subprocess.check_output(["cat", domain + ".selector.txt"])
return jsonify(dkim)
@app.route("/pythonVersion", methods=["GET"])
def getPythonVersion():