allow disabling of swagger and package service

This commit is contained in:
Shaun Walker
2021-07-01 09:11:29 -04:00
parent eea417ff44
commit 525cbb87b0
10 changed files with 128 additions and 61 deletions

View File

@ -153,7 +153,7 @@ namespace Oqtane
if (_useSwagger)
{
app.UseSwagger();
app.UseSwaggerUI(c => { c.SwaggerEndpoint("/swagger/v1/swagger.json", "Oqtane " + Constants.Version); });
app.UseSwaggerUI(c => { c.SwaggerEndpoint("/swagger/" + Constants.Version + "/swagger.json", Constants.PackageId + " " + Constants.Version); });
}
app.UseEndpoints(endpoints =>