18 lines
369 B
Python
18 lines
369 B
Python
from __future__ import annotations
|
|
|
|
from flask import Blueprint, jsonify
|
|
|
|
from app.core_settings import get_settings
|
|
|
|
health_blueprint = Blueprint("health", __name__)
|
|
|
|
|
|
@health_blueprint.get("/health")
|
|
def health():
|
|
settings = get_settings()
|
|
return jsonify({
|
|
"status": "ok",
|
|
"app": settings.app_name,
|
|
"version": settings.version,
|
|
})
|