flask_template_codex/app/core/routes.py
2026-08-08 04:14:25 +02:00

18 lines
302 B
Python

from flask import jsonify, render_template
from . import bp
@bp.get("/")
def index():
return render_template("core/index.html")
@bp.get("/health")
def health():
return jsonify(status="ok")
@bp.app_errorhandler(403)
def forbidden(_error):
return render_template("core/403.html"), 403