Version 0.1.1 rise to flask app factory
This commit is contained in:
10
Html/apps/views/__init__.py
Normal file
10
Html/apps/views/__init__.py
Normal file
@@ -0,0 +1,10 @@
|
||||
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)
|
||||
Reference in New Issue
Block a user