]> jfr.im git - irc/quakenet/qwebirc.git/blame - qwebirc/root.py
Now works.
[irc/quakenet/qwebirc.git] / qwebirc / root.py
CommitLineData
d4e3371b
CP
1from ajaxengine import AJAXEngine\r
2\r
3from twisted.web import resource, server, static\r
4\r
e1b81267
CP
5class RootResource(resource.Resource):\r
6 isLeaf = True\r
d4e3371b 7 def render_GET(self, request):\r
e1b81267
CP
8 return "moo"\r
9 \r
10class RootSite(server.Site):\r
11 def __init__(self, path, *args, **kwargs):\r
12 root = resource.Resource()\r
13 server.Site.__init__(self, root, *args, **kwargs)\r
14 \r
15 root.putChild("", RootResource())\r
16 root.putChild("static", static.File(path))\r