mirror of
https://github.com/Radiquum/YAMPD.git
synced 2025-09-08 15:33:57 +05:00
fix build and add todo
This commit is contained in:
parent
c3e0e55e0f
commit
50a1c8118e
4 changed files with 14 additions and 5 deletions
|
@ -4,6 +4,7 @@ from flaskwebgui import FlaskUI # import FlaskUI
|
|||
import os
|
||||
import sys
|
||||
from flask_socketio import SocketIO
|
||||
from engineio.async_drivers import threading
|
||||
|
||||
from api import apiPack, apiPacks, apiDownload
|
||||
|
||||
|
@ -19,7 +20,7 @@ app = Flask(
|
|||
static_folder=resource_path("static"),
|
||||
template_folder=resource_path("templates"),
|
||||
)
|
||||
socketio = SocketIO(app, cors_allowed_origins="*")
|
||||
socketio = SocketIO(app, cors_allowed_origins="*", async_mode="threading")
|
||||
|
||||
app.register_blueprint(apiPack)
|
||||
app.register_blueprint(apiPacks)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue