Skip to main content
Version: Next

UrlPatternDiscovery.compile()

Home > @backstage/core-app-api > UrlPatternDiscovery > compile

Creates a new UrlPatternDiscovery given a template. The only interpolation done for the template is to replace instances of {{pluginId}} with the ID of the plugin being requested.

Example pattern: http://localhost:7007/api/{{ pluginId }}

Signature:

static compile(pattern: string): UrlPatternDiscovery;

Parameters

Parameter

Type

Description

pattern

string

**Returns:**

UrlPatternDiscovery