Skip to content

Commit b0d4f10

Browse files
committed
Finalize OpenAPI configuration in the DesApi class
1 parent e959000 commit b0d4f10

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/CrackSharp.Api/Des/Endpoints/DesApi.cs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,13 @@ public static IEndpointRouteBuilder MapDesApi(this IEndpointRouteBuilder app)
1414

1515
group.MapGet("/decrypt/{*hash}", Decrypt)
1616
.AddEndpointFilter(DesValidationFilters.ValidateDecryptInput)
17-
.WithName("DecryptDesHash");
17+
.WithName("DecryptDesHash")
18+
.WithOpenApi();
1819

1920
group.MapGet("/encrypt/{*text}", Encrypt)
2021
.AddEndpointFilter(DesValidationFilters.ValidateEncryptInput)
21-
.WithName("GetDesHash");
22+
.WithName("GetDesHash")
23+
.WithOpenApi();
2224

2325
return app;
2426
}

0 commit comments

Comments
 (0)