@sentzunhat/zacatl
Version:
A modular, high-performance TypeScript microservice framework for Node.js, featuring layered architecture, dependency injection, and robust validation for building scalable APIs and distributed systems.
10 lines • 606 B
TypeScript
import type { FastifyReply, FastifySchema } from '../../../../../../../third-party/fastify.js';
import type { HTTPMethod } from '../../common/http-methods';
import type { Request } from '../../common/request';
export interface RouteHandler<TBody = unknown, TQuerystring = unknown, TResponse = unknown, TParams = unknown, THeaders = unknown> {
url: string;
method: HTTPMethod;
schema: Record<string, unknown> | FastifySchema;
execute(request: Request<TBody, TQuerystring, TParams, THeaders>, reply: FastifyReply): Promise<TResponse> | TResponse;
}
//# sourceMappingURL=route-handler.d.ts.map