feat(api): expose database target in health refs NOISSUE

This commit is contained in:
2026-04-10 20:39:36 +02:00
parent 59a7e9787e
commit 56b05eb686

View File

@@ -190,9 +190,12 @@ def read_api_info():
@app.get('/health')
def health_check():
"""Health check endpoint."""
runtime = database_module.get_database_runtime_summary()
return {
'status': 'healthy',
'database': 'sqlite' if database_module.settings.use_sqlite else 'postgresql',
'database': runtime['backend'],
'database_target': runtime['target'],
'database_name': runtime['database'],
}