fix ws
This commit is contained in:
@@ -1,9 +1,8 @@
|
||||
from flask import Flask
|
||||
from .views.routes import main_bp
|
||||
from .sockets.terminal_service import terminal_bp
|
||||
from .views.file import file_bp
|
||||
from .config import Config
|
||||
from .extensions import init_extensions
|
||||
from .extensions import init_extensions,register_namespaces
|
||||
|
||||
def create_app():
|
||||
app = Flask(__name__, template_folder="../templates", static_folder="../static",static_url_path="/vsc-like/static")
|
||||
@@ -14,9 +13,10 @@ def create_app():
|
||||
|
||||
# 注册蓝图
|
||||
app.register_blueprint(main_bp)
|
||||
app.register_blueprint(terminal_bp)
|
||||
app.register_blueprint(file_bp)
|
||||
# 初始化SocketIO
|
||||
init_extensions(app)
|
||||
|
||||
register_namespaces(app)
|
||||
|
||||
return app
|
||||
|
||||
Reference in New Issue
Block a user