Module

x/drash/src/standard/handlers/ResourcesIndex.ts>ResourcesIndex

A microframework for building JavaScript HTTP applications. Runtime-agnostic. Strongly typed.
Latest
class ResourcesIndex
import { ResourcesIndex } from "https://dotland.deno.dev/x/drash@v3.0.0-beta.2/src/standard/handlers/ResourcesIndex.ts";

Constructors

new
ResourcesIndex(URLPatternClass: URLPatternClass, ...resources: ResourceClasses[])

Properties

protected
index: { resource: Resource; path_patterns: IURLPattern[]; }[]
protected
resources: ResourceClasses[]
protected
URLPatternClass: URLPatternClass

Methods

protected
buildIndex(resources: ResourceClasses[]): void
protected
search(request: { url: string; }): Promise<SearchResult | null>
handle<Output>(request: Input): Promise<Output>