rabin 7 tahun lalu
induk
melakukan
98668bce67
1 mengubah file dengan 1 tambahan dan 1 penghapusan
  1. 1 1
      demeter/web.py

+ 1 - 1
demeter/web.py

@@ -288,7 +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"/files/(.*[\.png|\.jpg|\.gif|\.js|\.css|\.font|\.fonts|\.ttc|\.ttf|\.woff|\.woff2|\.fon|\.eot|\.otf])", 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"}))