UNPKG

very-express

Version:

based on json schema and openapi, generate Express RestApi server with mongoDb

14 lines (10 loc) 256 B
// {{headerComment}} import { Controller } from "tsoa"; export class _ControllerFactory extends Controller { constructor() { super(); } protected isObjectId(id: string): boolean { return /^[0-9a-fA-F]{24}$/.test(id); } }