changeset 172:631556a64850

server side: added root redirection to libervia.html
author Goffi <goffi@goffi.org>
date Sun, 13 Jan 2013 20:03:55 +0100
parents 6e39e0eaca35
children 3d998119237e
files libervia.tac
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/libervia.tac	Sun Jan 13 20:03:11 2013 +0100
+++ b/libervia.tac	Sun Jan 13 20:03:55 2013 +0100
@@ -27,6 +27,7 @@
 from twisted.web import error as weberror
 from twisted.web.static import File
 from twisted.web.resource import Resource, NoResource
+from twisted.web.util import Redirect
 from twisted.python.components import registerAdapter
 from twisted.words.protocols.jabber.jid import JID
 from txjsonrpc.web import jsonrpc
@@ -746,6 +747,7 @@
             self.bridge.register(signal_name, self.signal_handler.getGenericCb(signal_name), "plugin")
         self.media_dir = self.bridge.getConfig('','media_dir')
         self.local_dir = self.bridge.getConfig('','local_dir')
+        root.putChild('', Redirect('libervia.html'))
         root.putChild('json_signal_api', self.signal_handler)
         root.putChild('json_api', MethodHandler(self))
         root.putChild('register_api', _register)