改API路径

This commit is contained in:
John Smith
2020-08-19 23:16:01 +08:00
parent 4e7cc7a782
commit 7cfa94c68c
4 changed files with 8 additions and 4 deletions

View File

@@ -21,6 +21,10 @@ logger = logging.getLogger(__name__)
WEB_ROOT = os.path.join(os.path.dirname(__file__), 'frontend', 'dist')
routes = [
(r'/api/server_info', api.main.ServerInfoHandler),
(r'/api/chat', api.chat.ChatHandler),
# TODO 兼容旧版,下版本移除
(r'/server_info', api.main.ServerInfoHandler),
(r'/chat', api.chat.ChatHandler),