blob: 1d9e3c812a312f35232bece284f6b275d0238d27 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
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!!!"
|