Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
constructor(private _sanitizer: DomSanitizer) {
this.endpoints$ = Beans.get(MessageClient).observe$(Topics.Applications)
.pipe(
take(1),
map((reply: TopicMessage) => {
const endpoints: AppEndpoint[] = [];
const applications = reply.body;
applications.forEach(application => {
const origin = application.origin;
const symbolicName = application.symbolicName;
endpoints.push({url: `${origin}/#/testing-app/publish-message`, label: `Publish messages from 'app-${symbolicName}`});
endpoints.push({url: `${origin}/#/testing-app/receive-message`, label: `Receive messages in 'app-${symbolicName}`});
endpoints.push({url: `${origin}/#/testing-app/manage-capabilities`, label: `Manage capabilities for 'app-${symbolicName}`});
endpoints.push({url: `${origin}/#/testing-app/manage-intents`, label: `Manage intents for 'app-${symbolicName}`});
endpoints.push({url: `${origin}/#/testing-app/outlets;count=2`, label: 'Include outlet(s) to show microfrontends'});
});