File size: 289 Bytes
aac350d
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
"""Stats routes — exposes metrics."""

from __future__ import annotations

from fastapi import APIRouter, Depends

from api.deps import get_metrics

router = APIRouter()


@router.get("")
@router.get("/")
async def stats_root(metrics=Depends(get_metrics)):
    return metrics.snapshot()