comparison service/piNode/piNode.py @ 1356:35090659d414

fix /static path dir Ignore-this: 464d6e4dfc28f03240fde8cf1f047e41 darcs-hash:a16cad68206967fd7e85e2fe66d07e5cba279b6f
author drewp <drewp@bigasterisk.com>
date Thu, 25 Apr 2019 23:52:22 -0700
parents f2159312b0e7
children f397ec8bd13d
comparison
equal deleted inserted replaced
1355:f2159312b0e7 1356:35090659d414
322 static = pkg_resources.resource_filename('homeauto_anynode', 'static/') 322 static = pkg_resources.resource_filename('homeauto_anynode', 'static/')
323 323
324 reactor.listenTCP(9059, cyclone.web.Application([ 324 reactor.listenTCP(9059, cyclone.web.Application([
325 (r"/()", cyclone.web.StaticFileHandler, { 325 (r"/()", cyclone.web.StaticFileHandler, {
326 "path": static, "default_filename": "index.html"}), 326 "path": static, "default_filename": "index.html"}),
327 (r'/static/(.*)', cyclone.web.StaticFileHandler, {"path": "static"}), 327 (r'/static/(.*)', cyclone.web.StaticFileHandler, {"path": static}),
328 (r'/stats/(.*)', StatsHandler, {'serverName': 'piNode'}), 328 (r'/stats/(.*)', StatsHandler, {'serverName': 'piNode'}),
329 (r'/boards', Boards), 329 (r'/boards', Boards),
330 (r"/graph", CycloneGraphHandler, {'masterGraph': masterGraph}), 330 (r"/graph", CycloneGraphHandler, {'masterGraph': masterGraph}),
331 (r"/graph/events", CycloneGraphEventsHandler, {'masterGraph': masterGraph}), 331 (r"/graph/events", CycloneGraphEventsHandler, {'masterGraph': masterGraph}),
332 (r'/output', OutputPage), 332 (r'/output', OutputPage),