1
0
mirror of https://github.com/bitwarden/server.git synced 2025-04-09 07:08:15 -05:00

fix spec link

This commit is contained in:
Kyle Spearrin 2019-03-08 15:48:34 -05:00
parent e51d435236
commit 61f473390f

View File

@ -190,7 +190,7 @@ namespace Bit.Api
// Add MVC to the request pipeline. // Add MVC to the request pipeline.
app.UseMvc(); app.UseMvc();
if(Environment.IsDevelopment() || globalSettings.SelfHosted) if(Environment.IsDevelopment() || globalSettings.SelfHosted)
{ {
app.UseSwagger(config => app.UseSwagger(config =>
@ -201,7 +201,8 @@ namespace Bit.Api
{ {
config.DocumentTitle = "Bitwarden API Documentation"; config.DocumentTitle = "Bitwarden API Documentation";
config.RoutePrefix = "docs"; config.RoutePrefix = "docs";
config.SwaggerEndpoint("/specs/public/swagger.json", "Bitwarden Public API"); config.SwaggerEndpoint($"{globalSettings.BaseServiceUri.Api}/specs/public/swagger.json",
"Bitwarden Public API");
config.OAuthClientId("accountType.id"); config.OAuthClientId("accountType.id");
config.OAuthClientSecret("secretKey"); config.OAuthClientSecret("secretKey");
}); });