# ResourceUrlsEditor

- Module: [Aspire.Hosting](/reference/api/typescript/aspire.hosting.md)
- Version: `13.4.0`
- Kind: `handle`
- Source: [GitHub](https://github.com/microsoft/aspire)

Provides an ATS-first editor for resource URLs within polyglot callbacks.

## Definition

```typescript
interface ResourceUrlsEditor {
  readonly executionContext: DistributedApplicationExecutionContext;
  add(
      url: ReferenceExpression,
      displayText?: string): void;
  addForEndpoint(
      endpoint: EndpointReference,
      url: ReferenceExpression,
      displayText?: string): void;
}
```

## Properties

- `executionContext`: [DistributedApplicationExecutionContext](/reference/api/typescript/aspire.hosting/distributedapplicationexecutioncontext.md) `get` -- Gets the execution context associated with this editor.

## Methods

- [add](/reference/api/typescript/aspire.hosting/resourceurlseditor/add.md) -- `method` -- Adds a displayed URL.
    ```typescript
  add(url: ReferenceExpression, displayText?: string): void
  ```
- [addForEndpoint](/reference/api/typescript/aspire.hosting/resourceurlseditor/addforendpoint.md) -- `method` -- Adds a displayed URL for a specific endpoint.
    ```typescript
  addForEndpoint(endpoint: EndpointReference, url: ReferenceExpression, displayText?: string): void
  ```
