10 lines
386 B
Python
10 lines
386 B
Python
from flask import Flask
|
|
from .markdown import bp as markdown_bp
|
|
from .vscode import bp as vscode_bp
|
|
from .auth import bp as auth_bp
|
|
from .dashboard import bp as main_bp
|
|
def register_blueprints(app: Flask):
|
|
app.register_blueprint(markdown_bp) # 默认就是挂在根路径
|
|
app.register_blueprint(vscode_bp)
|
|
app.register_blueprint(auth_bp)
|
|
app.register_blueprint(main_bp) |