]> jfr.im git - irc/quakenet/qwebirc.git/blobdiff - qwebirc/root.py
Make channel, nick and auth links less obvious.
[irc/quakenet/qwebirc.git] / qwebirc / root.py
index a086219cb6e59da3bbba0bcaeec26e7e7e0e3165..78bd71854637c564a216adf178029a13df5c016f 100644 (file)
@@ -1,11 +1,12 @@
 from ajaxengine import AJAXEngine
-
+from authgateengine import AuthgateEngine
+import mimetypes
 from twisted.web import resource, server, static
 
 class RootResource(resource.Resource):
   def getChild(self, name, request):
     if name == "":
-      name = "mochaui.html"
+      name = "qui.html"
     return self.primaryChild.getChild(name, request)
 
 class RootSite(server.Site):
@@ -15,3 +16,7 @@ class RootSite(server.Site):
 
     root.primaryChild = static.File(path)
     root.putChild("e", AJAXEngine("/e"))
+    root.putChild("auth", AuthgateEngine("/auth"))
+
+mimetypes.types_map[".ico"] = "image/vnd.microsoft.icon"
+