UNPKG

fastify-mongoose-rest

Version:

Rest API generator tools for fastify and mongoose

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