Skip to content

Commit f551cea

Browse files
committed
Exclude root redirect endpoint from swagger
1 parent 7723998 commit f551cea

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

  • Source/Singulink.Cryptography.Pwned.Service

Source/Singulink.Cryptography.Pwned.Service/Program.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,8 @@
2121

2222
app.UseHttpsRedirection();
2323

24-
app.MapGet("/", () => Results.Redirect("/swagger"));
24+
app.MapGet("/", () => Results.Redirect("/swagger"))
25+
.ExcludeFromDescription();
2526

2627
app.MapGet("/CheckPassword", CheckPasswordAsync)
2728
.Produces<CheckPasswordResult>()

0 commit comments

Comments
 (0)