14 lines
543 B
Python
14 lines
543 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
|
|
from .material import bp as material_bp
|
|
from .lessons import bp as lessons_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)
|
|
app.register_blueprint(material_bp)
|
|
app.register_blueprint(lessons_bp) |