routes property
HTTP routes exposed by this controller.
Implementation
@override
List<ApiRoute> get routes => [
ApiRoute<void, String>(
method: ApiMethod.get,
path: '/metrics',
typedHandler: _handle,
contentType: 'text/plain; version=0.0.4; charset=utf-8',
summary: 'Prometheus metrics',
description:
'Returns request counters and latency histograms in Prometheus text format.',
),
];