diff options
author | Frederick Muriuki Muriithi | 2022-04-25 10:03:10 +0300 |
---|---|---|
committer | Frederick Muriuki Muriithi | 2022-04-25 10:03:10 +0300 |
commit | 063a9529c49df5f21d83c973f501db09161542cd (patch) | |
tree | b0ee520655ef25d76d5aee5f4f4e015d54878177 /qc_app/parse.py | |
parent | b419a43c851336aeb57407c72c0a37271fbb2ebc (diff) | |
download | gn-uploader-063a9529c49df5f21d83c973f501db09161542cd.tar.gz |
Implement file upload
Diffstat (limited to 'qc_app/parse.py')
-rw-r--r-- | qc_app/parse.py | 14 |
1 files changed, 14 insertions, 0 deletions
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/<filename>", 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!!!" |