feat(api): expose database target in health refs NOISSUE
This commit is contained in:
@@ -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'],
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user