Commit fe1e770 1 parent 476fdca commit fe1e770 Copy full SHA for fe1e770
File tree 1 file changed +2
-3
lines changed
src/Digdir.Domain.Dialogporten.WebApi
1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -166,9 +166,6 @@ static void BuildAndRun(string[] args)
166
166
} )
167
167
. UseSwaggerGen ( config =>
168
168
{
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" ;
172
169
config . PostProcess = ( document , _ ) =>
173
170
{
174
171
var dialogportenBaseUri = builder . Configuration
@@ -185,6 +182,8 @@ static void BuildAndRun(string[] args)
185
182
{
186
183
// Hide schemas view
187
184
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.
188
187
uiConfig . DocumentPath = "/dialogporten/swagger/{documentName}/swagger.json" ;
189
188
} ) ;
190
189
app . MapControllers ( ) ;
You can’t perform that action at this time.
0 commit comments