Commit 476fdca 1 parent 2161066 commit 476fdca Copy full SHA for 476fdca
File tree 1 file changed +1
-1
lines changed
src/Digdir.Domain.Dialogporten.WebApi
1 file changed +1
-1
lines changed Original file line number Diff line number Diff line change @@ -169,7 +169,6 @@ static void BuildAndRun(string[] args)
169
169
// We have to add dialogporten here to get the correct base url for swagger.json in the APIM
170
170
// todo: we cannot have dialogporten as prefix when we run this locally. Won't be available on container apps either.
171
171
config . Path = "/dialogporten/swagger/{documentName}/swagger.json" ;
172
-
173
172
config . PostProcess = ( document , _ ) =>
174
173
{
175
174
var dialogportenBaseUri = builder . Configuration
@@ -186,6 +185,7 @@ static void BuildAndRun(string[] args)
186
185
{
187
186
// Hide schemas view
188
187
uiConfig . DefaultModelsExpandDepth = - 1 ;
188
+ uiConfig . DocumentPath = "/dialogporten/swagger/{documentName}/swagger.json" ;
189
189
} ) ;
190
190
app . MapControllers ( ) ;
191
191
app . MapHealthChecks ( "/healthz" ) ;
You can’t perform that action at this time.
0 commit comments