From f5c891027728415a34a3867001e73aaaf35b7567 Mon Sep 17 00:00:00 2001 From: Adam Bem Date: Mon, 20 Feb 2023 14:25:46 +0100 Subject: [PATCH] Added endpoints for formatter --- Backend-libXML/main.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Backend-libXML/main.py b/Backend-libXML/main.py index 0996a1d..fab863a 100644 --- a/Backend-libXML/main.py +++ b/Backend-libXML/main.py @@ -72,5 +72,10 @@ def prettify(): request_data = json.loads(request.get_data(as_text=True)) return Parser.prettify(request_data['data']) +@app.route("/minimizepost", methods=["POST"]) +def minimize(): + request_data = json.loads(request.get_data(as_text=True)) + return Parser.prettify(request_data['data']) + if __name__ == "__main__": app.run() \ No newline at end of file