Initial commit.
This commit is contained in:
10
app/routes/home.py
Normal file
10
app/routes/home.py
Normal file
@@ -0,0 +1,10 @@
|
||||
from flask import Blueprint, current_app, render_template
|
||||
|
||||
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)
|
Reference in New Issue
Block a user