@@ -41,23 +41,23 @@ public void MapDashboardRoutes()
4141 {
4242 var prefixMatch = _options . PathMatch + "/api" ;
4343
44- _builder . MapGet ( prefixMatch + "/metrics-realtime" , Metrics ) ;
45- _builder . MapGet ( prefixMatch + "/meta" , MetaInfo ) ;
46- _builder . MapGet ( prefixMatch + "/stats" , Stats ) ;
47- _builder . MapGet ( prefixMatch + "/metrics-history" , MetricsHistory ) ;
48- _builder . MapGet ( prefixMatch + "/health" , Health ) ;
49- _builder . MapGet ( prefixMatch + "/published/message/{id:long}" , PublishedMessageDetails ) ;
50- _builder . MapGet ( prefixMatch + "/received/message/{id:long}" , ReceivedMessageDetails ) ;
51-
52- _builder . MapPost ( prefixMatch + "/published/requeue" , PublishedRequeue ) ;
53- _builder . MapPost ( prefixMatch + "/received/reexecute" , ReceivedRequeue ) ;
54-
55- _builder . MapGet ( prefixMatch + "/published/{status}" , PublishedList ) ;
56- _builder . MapGet ( prefixMatch + "/received/{status}" , ReceivedList ) ;
57- _builder . MapGet ( prefixMatch + "/subscriber" , Subscribers ) ;
58- _builder . MapGet ( prefixMatch + "/nodes" , Nodes ) ;
44+ _builder . MapGet ( prefixMatch + "/metrics-realtime" , Metrics ) . AllowAnonymousIf ( _options . AllowAnonymousExplicit ) ;
45+ _builder . MapGet ( prefixMatch + "/meta" , MetaInfo ) . AllowAnonymousIf ( _options . AllowAnonymousExplicit ) ;
46+ _builder . MapGet ( prefixMatch + "/stats" , Stats ) . AllowAnonymousIf ( _options . AllowAnonymousExplicit ) ;
47+ _builder . MapGet ( prefixMatch + "/metrics-history" , MetricsHistory ) . AllowAnonymousIf ( _options . AllowAnonymousExplicit ) ;
48+ _builder . MapGet ( prefixMatch + "/health" , Health ) . AllowAnonymousIf ( _options . AllowAnonymousExplicit ) ;
49+ _builder . MapGet ( prefixMatch + "/published/message/{id:long}" , PublishedMessageDetails ) . AllowAnonymousIf ( _options . AllowAnonymousExplicit ) ;
50+ _builder . MapGet ( prefixMatch + "/received/message/{id:long}" , ReceivedMessageDetails ) . AllowAnonymousIf ( _options . AllowAnonymousExplicit ) ;
51+
52+ _builder . MapPost ( prefixMatch + "/published/requeue" , PublishedRequeue ) . AllowAnonymousIf ( _options . AllowAnonymousExplicit ) ;
53+ _builder . MapPost ( prefixMatch + "/received/reexecute" , ReceivedRequeue ) . AllowAnonymousIf ( _options . AllowAnonymousExplicit ) ;
54+
55+ _builder . MapGet ( prefixMatch + "/published/{status}" , PublishedList ) . AllowAnonymousIf ( _options . AllowAnonymousExplicit ) ;
56+ _builder . MapGet ( prefixMatch + "/received/{status}" , ReceivedList ) . AllowAnonymousIf ( _options . AllowAnonymousExplicit ) ;
57+ _builder . MapGet ( prefixMatch + "/subscriber" , Subscribers ) . AllowAnonymousIf ( _options . AllowAnonymousExplicit ) ;
58+ _builder . MapGet ( prefixMatch + "/nodes" , Nodes ) . AllowAnonymousIf ( _options . AllowAnonymousExplicit ) ;
5959 }
60-
60+
6161 public async Task Metrics ( HttpContext httpContext )
6262 {
6363 if ( _agent != null && await _agent . Invoke ( httpContext ) ) return ;
0 commit comments