前端配置放在URL参数

This commit is contained in:
John Smith
2020-02-01 21:27:50 +08:00
parent 8d4e8e6f35
commit cae06858fc
17 changed files with 77 additions and 192 deletions

View File

@@ -11,7 +11,6 @@ import tornado.web
import update
import views.chat
import views.config
import views.main
logger = logging.getLogger(__name__)
@@ -38,8 +37,6 @@ def main():
app = tornado.web.Application(
[
(r'/chat', views.chat.ChatHandler),
(r'/config', views.config.ConfigsHandler),
(r'/config/(.+)', views.config.ConfigHandler),
(r'/((css|fonts|img|js|static)/.*)', tornado.web.StaticFileHandler, {'path': WEB_ROOT}),
(r'/(favicon\.ico)', tornado.web.StaticFileHandler, {'path': WEB_ROOT}),