()
| 109 | |
| 110 | |
| 111 | async def main(): |
| 112 | parse_command_line() |
| 113 | app = tornado.web.Application( |
| 114 | [ |
| 115 | (r"/", MainHandler), |
| 116 | (r"/a/message/new", MessageNewHandler), |
| 117 | (r"/a/message/updates", MessageUpdatesHandler), |
| 118 | ], |
| 119 | cookie_secret="__TODO:_GENERATE_YOUR_OWN_RANDOM_VALUE_HERE__", |
| 120 | template_path=os.path.join(os.path.dirname(__file__), "templates"), |
| 121 | static_path=os.path.join(os.path.dirname(__file__), "static"), |
| 122 | xsrf_cookies=True, |
| 123 | debug=options.debug, |
| 124 | ) |
| 125 | app.listen(options.port) |
| 126 | await asyncio.Event().wait() |
| 127 | |
| 128 | |
| 129 | if __name__ == "__main__": |
no test coverage detected