콘텐츠로 이동
한국어

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