fix flask rec_path
This commit is contained in:
parent
a222576cad
commit
43db5723be
1 changed files with 2 additions and 2 deletions
|
@ -290,11 +290,11 @@ def database_route():
|
||||||
|
|
||||||
@app.route("/video/<file_name>", methods=['GET'])
|
@app.route("/video/<file_name>", methods=['GET'])
|
||||||
def video_route(file_name):
|
def video_route(file_name):
|
||||||
return send_file(f"./{rec_path}/vod/{file_name}",mimetype='video/mp4')
|
return send_file(f"{rec_path}/vod/{file_name}",mimetype='video/mp4')
|
||||||
|
|
||||||
@app.route("/thumb/<file_name>", methods=['GET'])
|
@app.route("/thumb/<file_name>", methods=['GET'])
|
||||||
def thumb_route(file_name):
|
def thumb_route(file_name):
|
||||||
return send_file(f"./{rec_path}/thumb/{file_name}",mimetype='image/png')
|
return send_file(f"{rec_path}/thumb/{file_name}",mimetype='image/png')
|
||||||
|
|
||||||
def create_app():
|
def create_app():
|
||||||
return app
|
return app
|
||||||
|
|
Loading…
Reference in a new issue