14 lines
272 B
Python
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")
|