Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- c.InjectJavaScript(thisAssembly, "MyProject.Scripts.swagger-plugins.js");
- const DisableTryItOutPlugin = function() {
- return {
- statePlugins: {
- spec: {
- wrapSelectors: {
- allowTryItOutFor: () => () => false
- }
- }
- }
- }
- }
- const DisableAuthorizePlugin = function () {
- return {
- wrapComponents: {
- AuthorizeBtn: () => () => null
- }
- }
- }
- SwaggerUI({
- plugins: [
- DisableTryItOutPlugin,
- DisableAuthorizePlugin
- ]
- })
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement