1
0
mirror of https://github.com/bitwarden/server.git synced 2025-04-06 13:38:13 -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.
app.UseMvc();
if(Environment.IsDevelopment() || globalSettings.SelfHosted)
{
app.UseSwagger(config =>
@ -201,7 +201,8 @@ namespace Bit.Api
{
config.DocumentTitle = "Bitwarden API Documentation";
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.OAuthClientSecret("secretKey");
});