Skip to content

Commit ecccccd

Browse files
committed
fix: Expose OpenAPI docs for monolith
Signed-off-by: Tom Kerkhove <[email protected]>
1 parent b2f29ee commit ecccccd

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/monolith/Demo.Monolith.API/Extensions/IApplicationBuilderExtensions.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ public static void UseOpenApiUi(this IApplicationBuilder app)
2525
swaggerUiOptions.SwaggerEndpoint($"/swagger/{OpenApiCategories.Shipments}/swagger.json", "Codito - Shipments API");
2626
swaggerUiOptions.SwaggerEndpoint($"/swagger/{OpenApiCategories.ShipmentWebhook}/swagger.json", "Codito - Shipment Webhook API");
2727

28+
swaggerUiOptions.RoutePrefix = "api/docs";
2829
swaggerUiOptions.DisplayOperationId();
2930
swaggerUiOptions.EnableDeepLinking();
3031
swaggerUiOptions.DocExpansion(DocExpansion.List);

0 commit comments

Comments
 (0)