Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
export function mountSwagger() {
SwaggerUIBundle({
deepLinking: true,
dom_id: "#swagger-ui",
// layout: "DashboardLayout",
plugins: [SwaggerUIBundle.plugins.DownloadUrl],
presets: [SwaggerUIBundle.presets.apis],
requestInterceptor: (request: Request) => {
request.headers["x-transient-key"] = getMeta("TransientKey");
return request;
},
url: formatUrl("/api/v2/open-api/v3" + window.location.search),
validatorUrl: null,
});
}