Add folders with password sharing and email invites
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
+5
-1
@@ -42,21 +42,25 @@ def create_app():
|
||||
from .routes import bp as main_bp, cabinet_bp
|
||||
from .auth import bp as auth_bp
|
||||
from .admin import bp as admin_bp
|
||||
from .folders import bp as folders_bp
|
||||
|
||||
app.register_blueprint(main_bp)
|
||||
app.register_blueprint(cabinet_bp)
|
||||
app.register_blueprint(auth_bp)
|
||||
app.register_blueprint(admin_bp)
|
||||
app.register_blueprint(folders_bp)
|
||||
|
||||
register_cli(app)
|
||||
|
||||
with app.app_context():
|
||||
from app.models import Photo, User # noqa: F401
|
||||
from app.models import Folder, FolderInvite, FolderMember, Photo, User # noqa: F401
|
||||
|
||||
db.create_all()
|
||||
from app.bootstrap import create_first_admin, ensure_schema
|
||||
from app.folders import ensure_folder_schema
|
||||
|
||||
ensure_schema()
|
||||
ensure_folder_schema()
|
||||
create_first_admin(app)
|
||||
|
||||
return app
|
||||
|
||||
Reference in New Issue
Block a user