Files
pyasic/tools/web_monitor/app.py
2022-02-24 08:57:23 -07:00

14 lines
272 B
Python

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")