添加前端获取后端配置

This commit is contained in:
John Smith
2020-02-06 19:51:03 +08:00
parent 34f0effb6a
commit d5b885aab4
3 changed files with 32 additions and 2 deletions

View File

@@ -21,6 +21,7 @@ logger = logging.getLogger(__name__)
WEB_ROOT = os.path.join(os.path.dirname(__file__), 'frontend', 'dist')
routes = [
(r'/server_info', api.main.ServerInfoHandler),
(r'/chat', api.chat.ChatHandler),
(r'/((css|fonts|img|js|static)/.*)', tornado.web.StaticFileHandler, {'path': WEB_ROOT}),