Skip to content
English

RouteRegistration

RouteRegistration = object

Defined in: src/http/backend/HttpServerBackend.ts:5

One route registration — supplied by the DSL after compilation.

readonly handler: (request) => Promise<HttpResponse> | HttpResponse

Defined in: src/http/backend/HttpServerBackend.ts:9

HttpRequest

Promise<HttpResponse> | HttpResponse


readonly method: HttpMethod

Defined in: src/http/backend/HttpServerBackend.ts:6


readonly pattern: string

Defined in: src/http/backend/HttpServerBackend.ts:8

Path pattern in the Fastify/Express style: /users/:id