fix: fix swagger api key auth (#4483) [no ci]

pull/4485/head
Qiming Chen 3 years ago committed by GitHub
parent cc55d3fcf4
commit 32ee4e88ec
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -41,6 +41,21 @@ namespace Ombi
Type = SecuritySchemeType.ApiKey
});
c.AddSecurityRequirement(new OpenApiSecurityRequirement
{
{
new OpenApiSecurityScheme
{
Reference = new OpenApiReference
{
Type = ReferenceType.SecurityScheme,
Id = "ApiKey"
}
},
new string[] {}
}
});
c.CustomSchemaIds(x => x.FullName);
try

Loading…
Cancel
Save