dever 7 年之前
父節點
當前提交
e010070b83
共有 1 個文件被更改,包括 1 次插入0 次删除
  1. 1 0
      demeter/web.py

+ 1 - 0
demeter/web.py

@@ -288,6 +288,7 @@ class Web(object):
 		handlers = []
 		def application_setting():
 			handlers.append((r"/upload/(.*)", tornado.web.StaticFileHandler, {"path": Demeter.path + 'runtime/upload/'}))
+			handlers.append((r"/files/(.*[\.png|\.jpg|\.gif])", tornado.web.StaticFileHandler, {"path": Demeter.path + 'runtime/files/'}))
 			handlers.append((r"/qrcode/(.*)", tornado.web.StaticFileHandler, {"path": Demeter.path + 'runtime/qrcode/'}))
 			handlers.append((r"/camera/(.*)", tornado.web.StaticFileHandler, {"path": Demeter.path + 'runtime/camera/'}))
 			handlers.append((r"/static/(.*)", tornado.web.StaticFileHandler, {"path": "static"}))