comparison src/server/server.py @ 613:deddd1cd8aa5 frontends_multi_profiles

browser side: added a base_location property to get location of current Libervia instance
author Goffi <goffi@goffi.org>
date Tue, 10 Feb 2015 20:42:39 +0100
parents ea27925ef2a8
children 4f7550a083b4
comparison
equal deleted inserted replaced
612:5983d6be4f07 613:deddd1cd8aa5
1105 1105
1106 def putChild(path, resource): 1106 def putChild(path, resource):
1107 """Add a child to the root resource""" 1107 """Add a child to the root resource"""
1108 root.putChild(path, EncodingResourceWrapper(resource, [server.GzipEncoderFactory()])) 1108 root.putChild(path, EncodingResourceWrapper(resource, [server.GzipEncoderFactory()]))
1109 1109
1110 putChild('', Redirect('libervia.html')) 1110 putChild('', Redirect(C.LIBERVIA_MAIN_PAGE))
1111 putChild('test', Redirect('libervia_test.html')) 1111 putChild('test', Redirect('libervia_test.html'))
1112 putChild('json_signal_api', self.signal_handler) 1112 putChild('json_signal_api', self.signal_handler)
1113 putChild('json_api', MethodHandler(self)) 1113 putChild('json_api', MethodHandler(self))
1114 putChild('register_api', _register) 1114 putChild('register_api', _register)
1115 putChild('upload_radiocol', _upload_radiocol) 1115 putChild('upload_radiocol', _upload_radiocol)