bae705aa97
- Add NFC ePassport roadmap (ICAO 9303, eIDAS) - Add TensorFlow.js edge face detection (BlazeFace) - Add structured audit logger (GDPR-compliant) - Risk scoring support Part of KYC Apple Native UX v1.1.0
17 lines
303 B
Python
17 lines
303 B
Python
"""
|
|
Metrics endpoint for Prometheus
|
|
"""
|
|
|
|
from fastapi import APIRouter
|
|
from api.metrics import get_metrics
|
|
|
|
router = APIRouter()
|
|
|
|
@router.get("/metrics")
|
|
async def metrics():
|
|
"""Prometheus metrics endpoint"""
|
|
return Response(
|
|
content=get_metrics(),
|
|
media_type="text/plain"
|
|
)
|