diff service/rfid_pn532_py/rfid.py @ 415:91b4a04a33e7

split console web component Ignore-this: 1af5e69fff09e7e5680ffb25e9236fc0
author drewp@bigasterisk.com
date Sat, 23 Mar 2019 13:57:44 -0700
parents f1a9b4670470
children f134b64a0ab7
line wrap: on
line diff
--- a/service/rfid_pn532_py/rfid.py	Sat Mar 23 04:38:07 2019 -0700
+++ b/service/rfid_pn532_py/rfid.py	Sat Mar 23 13:57:44 2019 -0700
@@ -190,7 +190,7 @@
 
     port = 10012
     reactor.listenTCP(port, cyclone.web.Application([
-        (r"/()", cyclone.web.StaticFileHandler,
+        (r"/(|.+\.html)", cyclone.web.StaticFileHandler,
          {"path": ".", "default_filename": "index.html"}),
         (r"/graph", CycloneGraphHandler, {'masterGraph': masterGraph}),
         (r"/graph/events", CycloneGraphEventsHandler,