first commit
This commit is contained in:
17
backend/app/routes/health.py
Normal file
17
backend/app/routes/health.py
Normal file
@@ -0,0 +1,17 @@
|
||||
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,
|
||||
})
|
||||
Reference in New Issue
Block a user