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:
parent
e51d435236
commit
61f473390f
@ -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");
|
||||
});
|
||||
|
Loading…
x
Reference in New Issue
Block a user