23 lines
664 B
Python
23 lines
664 B
Python
"""
|
|
Роуты HTML-страниц.
|
|
|
|
GET / — главная страница (интерфейс с микрофоном).
|
|
GET /health — проверка живости сервера.
|
|
"""
|
|
|
|
from flask import Blueprint, render_template, jsonify
|
|
|
|
pages_bp = Blueprint("pages", __name__)
|
|
|
|
|
|
@pages_bp.route("/")
|
|
def index():
|
|
"""Главная страница с тремя кнопками записи (по одной на каждый ЛЛМ)."""
|
|
return render_template("index.html")
|
|
|
|
|
|
@pages_bp.route("/health")
|
|
def health():
|
|
"""Проверка работоспособности сервера."""
|
|
return jsonify({"status": "ok"})
|