Skip to content

Commit fe1e770

Browse files
committed
fix: remove path to swagger json
1 parent 476fdca commit fe1e770

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/Digdir.Domain.Dialogporten.WebApi/Program.cs

+2-3
Original file line numberDiff line numberDiff line change
@@ -166,9 +166,6 @@ static void BuildAndRun(string[] args)
166166
})
167167
.UseSwaggerGen(config =>
168168
{
169-
// We have to add dialogporten here to get the correct base url for swagger.json in the APIM
170-
// todo: we cannot have dialogporten as prefix when we run this locally. Won't be available on container apps either.
171-
config.Path = "/dialogporten/swagger/{documentName}/swagger.json";
172169
config.PostProcess = (document, _) =>
173170
{
174171
var dialogportenBaseUri = builder.Configuration
@@ -185,6 +182,8 @@ static void BuildAndRun(string[] args)
185182
{
186183
// Hide schemas view
187184
uiConfig.DefaultModelsExpandDepth = -1;
185+
// We have to add dialogporten here to get the correct base url for swagger.json in the APIM
186+
// todo: we cannot have dialogporten as prefix when we run this locally. Won't be available on container apps either.
188187
uiConfig.DocumentPath = "/dialogporten/swagger/{documentName}/swagger.json";
189188
});
190189
app.MapControllers();

0 commit comments

Comments
 (0)