跳转到内容
简体中文

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