started adding HTML files for the web monitor program
This commit is contained in:
13
tools/web_monitor/app.py
Normal file
13
tools/web_monitor/app.py
Normal file
@@ -0,0 +1,13 @@
|
||||
import socketio
|
||||
from sanic import Sanic
|
||||
|
||||
app = Sanic("App")
|
||||
|
||||
# attach socketio
|
||||
sio = socketio.AsyncServer(async_mode="sanic")
|
||||
sio.attach(app)
|
||||
|
||||
app.static('/', "./public/index.html")
|
||||
app.static('/index.css', "./static/index.css")
|
||||
|
||||
app.static('/scan', "./public/scan.html")
|
||||
Reference in New Issue
Block a user