Skip to content

Commit 25bf032

Browse files
viewer: change auth for whoami and capabilities handlers (#17942)
1 parent 4e56d1c commit 25bf032

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

ydb/core/viewer/viewer.cpp

+18
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,24 @@ class TViewer : public TActorBootstrapped<TViewer>, public IViewer {
8282
.ActorId = ctx.SelfID,
8383
.UseAuth = false,
8484
});
85+
mon->RegisterActorPage({
86+
.RelPath = "viewer/json/capabilities", // temporary handling of old paths
87+
.ActorSystem = ctx.ActorSystem(),
88+
.ActorId = ctx.SelfID,
89+
.UseAuth = false,
90+
});
91+
mon->RegisterActorPage({
92+
.RelPath = "viewer/whoami",
93+
.ActorSystem = ctx.ActorSystem(),
94+
.ActorId = ctx.SelfID,
95+
.UseAuth = false,
96+
});
97+
mon->RegisterActorPage({
98+
.RelPath = "viewer/json/whoami", // temporary handling of old paths
99+
.ActorSystem = ctx.ActorSystem(),
100+
.ActorId = ctx.SelfID,
101+
.UseAuth = false,
102+
});
85103
mon->RegisterActorPage({
86104
.Title = "Viewer",
87105
.RelPath = "viewer/v2",

0 commit comments

Comments
 (0)