From 61f473390f4a2bca88db16cf9e1bcced61d3c510 Mon Sep 17 00:00:00 2001 From: Kyle Spearrin Date: Fri, 8 Mar 2019 15:48:34 -0500 Subject: [PATCH] fix spec link --- src/Api/Startup.cs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/Api/Startup.cs b/src/Api/Startup.cs index 83d5772b95..3e3b35edf4 100644 --- a/src/Api/Startup.cs +++ b/src/Api/Startup.cs @@ -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"); });