GitHub

DaffExternalRouterDriverInterface

import { DaffExternalRouterDriverInterface } from '@daffodil/external-router/driver'

The interface for a @daffodil/external-router driver.

This driver is responsible for translating a URL into a Route consumable by Daffodil.

interface DaffExternalRouterDriverInterface {
  resolve(url: string): Observable<DaffExternallyResolvableUrl>
}

() Methods

resolve
Observable<DaffExternallyResolvableUrl>

Resolves a URL with a platform. Returns information about the type of URL.

Parameters
Parameterurl: string
Description

The full URL path qualified with file extension and leading slash but without domain. i.e. /full/path/to/thing.html