Files
pkm/app/routes/home.py
2025-08-18 20:14:56 +02:00

10 lines
341 B
Python

from flask import Blueprint, current_app, render_template, url_for
bp = Blueprint("home", __name__)
@bp.get("/")
def home():
vault_path = current_app.config.get("KB_VAULT_PATH")
has_vault = bool(vault_path)
return render_template("home.html", vault_path=vault_path, has_vault=has_vault, notes_url=url_for("notes.notes_index"))