Skip to content

Commit f199f7f

Browse files
#250 - Changed swagger configurations in startup
1 parent d16866c commit f199f7f

File tree

1 file changed

+1
-1
lines changed
  • aspnet-core/src/AbpCompanyName.AbpProjectName.Web.Host/Startup

1 file changed

+1
-1
lines changed

aspnet-core/src/AbpCompanyName.AbpProjectName.Web.Host/Startup/Startup.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ public void Configure(IApplicationBuilder app, IHostingEnvironment env, ILoggerF
122122
// Enable middleware to serve swagger-ui assets (HTML, JS, CSS etc.)
123123
app.UseSwaggerUI(options =>
124124
{
125-
options.SwaggerEndpoint("/swagger/v1/swagger.json", "AbpProjectName API V1");
125+
options.SwaggerEndpoint(_appConfiguration["App:ServerRootAddress"] + "/swagger/v1/swagger.json", "AbpProjectName API V1");
126126
options.IndexStream = () => Assembly.GetExecutingAssembly()
127127
.GetManifestResourceStream("AbpCompanyName.AbpProjectName.Web.Host.wwwroot.swagger.ui.index.html");
128128
}); // URL: /swagger

0 commit comments

Comments
 (0)