Updated endpoint paths to match Java backend

This commit is contained in:
2023-02-08 10:34:16 +01:00
parent 656aeb17dc
commit 9ce0e6fcd3

View File

@@ -50,15 +50,15 @@ def process_xml(request: request, type: str) -> str:
return json.dumps(response)
@app.route("/xpath", methods=["POST"])
@app.route("/xpathpost", methods=["POST"])
def xpath():
return process_xml(request, "xpath")
@app.route("/xsd", methods=["POST"])
@app.route("/xsdpost", methods=["POST"])
def xsd():
return process_xml(request, "xsd")
@app.route("/xslt", methods=["POST"])
@app.route("/xsltpost", methods=["POST"])
def xslt():
return process_xml(request, "xslt")