comparison service/piNode/piNode.py @ 627:c3f0a98fa65d

lib upgrades; fix a static http server path Ignore-this: f48022f37590e8bdb16957c49168d31b
author drewp@bigasterisk.com
date Thu, 08 Aug 2019 16:54:46 -0700
parents 69a84b3d1dfa
children accbbd521ecd
comparison
equal deleted inserted replaced
626:487cb5277ae3 627:c3f0a98fa65d
323 config = Config(masterGraph, arg['--hub']) 323 config = Config(masterGraph, arg['--hub'])
324 324
325 static = pkg_resources.resource_filename('homeauto_anynode', 'static/') 325 static = pkg_resources.resource_filename('homeauto_anynode', 'static/')
326 326
327 reactor.listenTCP(9059, cyclone.web.Application([ 327 reactor.listenTCP(9059, cyclone.web.Application([
328 (r"/()", cyclone.web.StaticFileHandler, { 328 (r"/(|output-widgets.html)", cyclone.web.StaticFileHandler, {
329 "path": static, "default_filename": "index.html"}), 329 "path": static, "default_filename": "index.html"}),
330 (r'/static/(.*)', cyclone.web.StaticFileHandler, {"path": static}), 330 (r'/static/(.*)', cyclone.web.StaticFileHandler, {"path": static}),
331 (r'/stats/(.*)', StatsHandler, {'serverName': 'piNode'}), 331 (r'/stats/(.*)', StatsHandler, {'serverName': 'piNode'}),
332 (r'/boards', Boards), 332 (r'/boards', Boards),
333 (r"/graph", CycloneGraphHandler, {'masterGraph': masterGraph}), 333 (r"/graph", CycloneGraphHandler, {'masterGraph': masterGraph}),