Milestone 2.

This commit is contained in:
2025-08-18 21:40:41 +02:00
parent 1646d7b827
commit e283e9f696
13 changed files with 615 additions and 107 deletions

View File

@@ -15,19 +15,20 @@ def create_app(config_override=None) -> Flask:
app.config["SECRET_KEY"] = cfg.SECRET_KEY
app.config["DEBUG"] = cfg.DEBUG
# Ensure vault structure early if configured
if cfg.VAULT_PATH:
try:
Vault(cfg.VAULT_PATH).ensure_structure()
except Exception:
# Avoid crashing on startup; routes can surface errors as needed
pass
# Register blueprints
from .routes.home import bp as home_bp
from .routes.notes import bp as notes_bp
from .routes.attachments import bp as attachments_bp # ensure attachments is registered
app.register_blueprint(home_bp)
app.register_blueprint(notes_bp)
app.register_blueprint(attachments_bp)
@app.get("/healthz")
def healthz():