Milestone 2.
This commit is contained in:
@@ -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():
|
||||
|
Reference in New Issue
Block a user