Skip to content

Commit

Permalink
Fix media path for editor. (HumanSignal#24)
Browse files Browse the repository at this point in the history
  • Loading branch information
makseq authored Aug 14, 2019
1 parent ba3e7f2 commit d24e587
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion backend/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,18 @@ def app_init():

@app.route('/static/editor/<path:path>')
def send_editor(path):
""" Static serving
""" Static for label tool js and css
"""
return flask.send_from_directory(c['editor']['build_path'], path)


@app.route('/static/media/<path:path>')
def send_media(path):
""" Static for label tool js and css
"""
return flask.send_from_directory(c['editor']['build_path'] + '/media', path)


@app.route('/static/<path:path>')
def send_static(path):
""" Static serving
Expand Down

0 comments on commit d24e587

Please sign in to comment.