shethjenil commited on
Commit
82e8beb
1 Parent(s): dde2fec

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -51,9 +51,9 @@ def function2():
51
  def function3():
52
  book.changesrcnum(int(flask.request.args.get("srcnum")))
53
  return "srcnum changed"
54
- @app.route('/file/<path:filename>')
55
  def serve_image(filename):
56
- return flask.send_from_directory(filename)
57
 
58
  if __name__ == '__main__':
59
  app.run("0.0.0.0",7860)
 
51
  def function3():
52
  book.changesrcnum(int(flask.request.args.get("srcnum")))
53
  return "srcnum changed"
54
+ @app.route('/file/images/<filename>')
55
  def serve_image(filename):
56
+ return flask.send_from_directory('images', filename)
57
 
58
  if __name__ == '__main__':
59
  app.run("0.0.0.0",7860)