import { CrudityOptions } from './CrudityOptions'; export interface WebServerOptions { /** * Port that the crudity server listen to. * * @default 3000 */ port: number; /** * true to enable CORS * * @default true */ cors: boolean; /** * Directory where to listen to * * @default './public' */ publicDir: string; /** * Object that specifies all the resource names and their config. * */ resources: { [name: string]: Partial; }; /** * The root endpoint for all ressources. * * @default '/api' */ rootEndPoint: string; /** * Enable crudity logging. * * @default true */ enableLogs: boolean; }