Instantly share code, notes, and snippets.

Embed
What would you like to do?
a config for swagger ui
.EnableSwaggerUi(c=>
{
c.InjectStylesheet(assemblyType, "Api.SwaggerExtensions.swaggeroverrides.css");
c.InjectJavaScript(assemblyType, "Api.SwaggerExtensions.hmac-sha1.js");
c.InjectJavaScript(assemblyType, "Api.SwaggerExtensions.moment.js");
c.InjectJavaScript(assemblyType, "Api.SwaggerExtensions.enc-base64.js");
c.InjectJavaScript(assemblyType, "Api.SwaggerExtensions.sha256.js");
c.InjectJavaScript(assemblyType, "Api.SwaggerExtensions.apihmacheaderauth.js");
c.CustomAsset("index", assemblyType, "Api.SwaggerExtensions.custom.index.html");
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment