Add folders with password sharing and email invites

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-06-06 22:30:00 +03:00
parent a375ad330a
commit db2cef41bb
16 changed files with 1016 additions and 4 deletions
+5 -1
View File
@@ -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