pub fn register_routes(router: Router<RouterState>) -> Router<RouterState>Expand description
Registers the stats route in the router builder.
This function adds the /api/v1/stats endpoint to the router configuration.
The route is always available when HTTP is enabled and does not depend
on any feature flags.
ยงArguments
router- The axum router to register routes with