UNPKG

fastify-mongoose-rest

Version:

Rest API generator tools for fastify and mongoose

16 lines (15 loc) 432 B
import { HTTPMethods } from 'fastify'; import { Model } from 'mongoose'; import { FastifyMongooseRestOptions } from '..'; export default function Modify(name: string, model: Model<any>, options?: FastifyMongooseRestOptions): { method: HTTPMethods; url: string; schema: { summary: string; tags: string[]; params: object; body: object; response: object; }; handler: any; };