1
0
mirror of https://github.com/bitwarden/server.git synced 2025-04-18 11:38:15 -05:00

doc title

This commit is contained in:
Kyle Spearrin 2019-02-28 14:25:47 -05:00
parent 1c71af47bb
commit 77b673f768

View File

@ -187,7 +187,7 @@ namespace Bit.Api
// Add MVC to the request pipeline. // Add MVC to the request pipeline.
app.UseMvc(); app.UseMvc();
if(globalSettings.SelfHosted) if(true || globalSettings.SelfHosted)
{ {
app.UseSwagger(config => app.UseSwagger(config =>
{ {
@ -195,6 +195,7 @@ namespace Bit.Api
}); });
app.UseSwaggerUI(config => app.UseSwaggerUI(config =>
{ {
config.DocumentTitle = "Bitwarden API Documentation";
config.RoutePrefix = "docs"; config.RoutePrefix = "docs";
config.SwaggerEndpoint("/specs/public/swagger.json", "Bitwarden Public API"); config.SwaggerEndpoint("/specs/public/swagger.json", "Bitwarden Public API");
config.OAuthClientId("accountType.id"); config.OAuthClientId("accountType.id");