provide img support
This commit is contained in:
parent
41c3e233f4
commit
f75a4417ef
1 changed files with 4 additions and 0 deletions
|
@ -317,5 +317,9 @@ def video_route(file_name):
|
|||
def thumb_route(file_name):
|
||||
return send_file(f"{rec_path}/thumb/{file_name}",mimetype='image/png')
|
||||
|
||||
@app.route("/img/<file_name>", methods=['GET'])
|
||||
def img_route(file_name):
|
||||
return send_file(f"./img/{file_name}",mimetype='image/png')
|
||||
|
||||
def create_app():
|
||||
return app
|
||||
|
|
Loading…
Reference in a new issue