We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ebc77cb commit cb7fc0cCopy full SHA for cb7fc0c
1 file changed
cloudbot/web/main.py
@@ -1,7 +1,7 @@
1
import asyncio
2
3
from tornado import gen
4
-from tornado.web import RequestHandler, Application, url
+from tornado.web import RequestHandler, Application, StaticFileHandler, url
5
from tornado.platform.asyncio import AsyncIOMainLoop
6
7
from jinja2 import Environment, PackageLoader
@@ -14,7 +14,8 @@ def get_template_env():
14
15
def get_application():
16
app = Application([
17
- url('/', TestHandler)
+ (r'/', TestHandler),
18
+ (r"/static/(.*)", StaticFileHandler, {"path": "./cloudbot/web/static"}),
19
])
20
return app
21
0 commit comments