File tree Expand file tree Collapse file tree 3 files changed +6
-0
lines changed
ServiceControl.Audit/Infrastructure/WebApi
ServiceControl.Monitoring/Http
ServiceControl/Infrastructure/WebApi Expand file tree Collapse file tree 3 files changed +6
-0
lines changed Original file line number Diff line number Diff line change 11namespace ServiceControl . Audit . Infrastructure . WebApi
22{
33 using Configuration ;
4+ using Microsoft . AspNetCore . Authorization ;
45 using Microsoft . AspNetCore . Http . Extensions ;
56 using Microsoft . AspNetCore . Mvc ;
67 using Settings ;
@@ -16,6 +17,7 @@ public RootController(Settings settings)
1617
1718 [ Route ( "" ) ]
1819 [ HttpGet ]
20+ [ AllowAnonymous ]
1921 public OkObjectResult Urls ( )
2022 {
2123 var baseUrl = Request . GetDisplayUrl ( ) ;
Original file line number Diff line number Diff line change 11namespace ServiceControl . Monitoring . Http
22{
3+ using Microsoft . AspNetCore . Authorization ;
34 using Microsoft . AspNetCore . Mvc ;
45 using Microsoft . Extensions . Primitives ;
56
@@ -8,6 +9,7 @@ public class RootController : ControllerBase
89 {
910 [ Route ( "" ) ]
1011 [ HttpGet ]
12+ [ AllowAnonymous ]
1113 public ActionResult < MonitoringInstanceModel > Get ( )
1214 {
1315 var model = new MonitoringInstanceModel
Original file line number Diff line number Diff line change 22{
33 using System . Threading ;
44 using System . Threading . Tasks ;
5+ using Microsoft . AspNetCore . Authorization ;
56 using Microsoft . AspNetCore . Http . Extensions ;
67 using Microsoft . AspNetCore . Mvc ;
78 using ServiceControl . Api ;
@@ -13,6 +14,7 @@ public class RootController(IConfigurationApi configurationApi) : ControllerBase
1314 {
1415 [ Route ( "" ) ]
1516 [ HttpGet ]
17+ [ AllowAnonymous ]
1618 public Task < RootUrls > Urls ( ) => configurationApi . GetUrls ( Request . GetDisplayUrl ( ) , default ) ;
1719
1820 [ Route ( "instance-info" ) ]
You can’t perform that action at this time.
0 commit comments