UNPKG

@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.

23 lines (20 loc) 518 B
import { FastifySchema } from "fastify"; import { AbstractRouteHandler } from "./abstract"; export type PostRouteHandlerConstructor = { url: string; schema: FastifySchema; }; export abstract class PostRouteHandler< TBody = void, TResponse = void, TQuerystring = void, TParams = void > extends AbstractRouteHandler<TBody, TQuerystring, TResponse, TParams> { constructor(args: PostRouteHandlerConstructor) { super({ url: args.url, method: "POST", schema: args.schema, }); } }