18 lines
302 B
Python
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
|