From 063a9529c49df5f21d83c973f501db09161542cd Mon Sep 17 00:00:00 2001 From: Frederick Muriuki Muriithi Date: Mon, 25 Apr 2022 10:03:10 +0300 Subject: Implement file upload --- qc_app/parse.py | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 qc_app/parse.py (limited to 'qc_app/parse.py') diff --git a/qc_app/parse.py b/qc_app/parse.py new file mode 100644 index 0000000..1d9e3c8 --- /dev/null +++ b/qc_app/parse.py @@ -0,0 +1,14 @@ +"""File parsing module""" +from flask import Blueprint + +parsebp = Blueprint("parse", __name__) + +@parsebp.route("/parse/", methods=["GET"]) +def parse_file(filename): + """Trigger file parsing""" + return f"STUB: Parse of '{filename}' ongoing!!!" + +@parsebp.route("/success", methods=["GET"]) +def success(): + """Indicates success if parsing the file is successful""" + return "STUB: Parse success!!!" -- cgit v1.2.3