mirror of
https://github.com/xfgryujk/blivechat.git
synced 2024-12-30 23:10:47 +08:00
11 lines
312 B
Python
11 lines
312 B
Python
|
# -*- coding: utf-8 -*-
|
|||
|
|
|||
|
import tornado.web
|
|||
|
|
|||
|
|
|||
|
# noinspection PyAbstractClass
|
|||
|
class MainHandler(tornado.web.StaticFileHandler):
|
|||
|
"""为了使用Vue Router的history模式,把所有请求转发到index.html"""
|
|||
|
async def get(self, *args, **kwargs):
|
|||
|
await super().get('index.html', *args, **kwargs)
|