namespace NATS.Server.Monitoring;

public sealed class RoutezHandler
{
    private readonly NatsServer _server;

    public RoutezHandler(NatsServer server)
    {
        _server = server;
    }

    public object Build()
    {
        var routes = _server.Stats.Routes;
        return new
        {
            routes,
            num_routes = routes,
        };
    }
}
