Refactored tools services endpoints system and fixed json formatter. (#91)
Co-authored-by: Artur Kołecki <koleckiartur@icloud.com> Co-authored-by: Adam Bem <adam.bem@zoho.eu> Reviewed-on: R11/release11-tools-web#91
This commit is contained in:
@@ -96,23 +96,23 @@ def process_xml(request: request, type: str) -> str:
|
||||
return json.dumps(response_json), code
|
||||
|
||||
|
||||
@app.route("/xpathpost", methods=["POST"])
|
||||
@app.route("/xpath", methods=["POST"])
|
||||
def xpath():
|
||||
return process_xml(request, "xpath")
|
||||
|
||||
@app.route("/xsdpost", methods=["POST"])
|
||||
@app.route("/xsd", methods=["POST"])
|
||||
def xsd():
|
||||
return process_xml(request, "xsd")
|
||||
|
||||
@app.route("/xsltpost", methods=["POST"])
|
||||
@app.route("/xslt", methods=["POST"])
|
||||
def xslt():
|
||||
return process_xml(request, "xslt")
|
||||
|
||||
@app.route("/prettifypost", methods=["POST"])
|
||||
@app.route("/prettify", methods=["POST"])
|
||||
def prettify():
|
||||
return process_xml(request, "prettify")
|
||||
|
||||
@app.route("/minimizepost", methods=["POST"])
|
||||
@app.route("/minimize", methods=["POST"])
|
||||
def minimize():
|
||||
return process_xml(request, "minimize")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user