Interface ICrudConfig

Configuration options for CRUD operations in Febby.

Example

const crudConfig: ICrudConfig = {
crud: true,
middlewares: [authMiddleware],
get: [validateGetParams],
post: [validatePostData],
put: [validatePutData],
delete: [validateDeleteParams]
};

Hierarchy

  • ICrudConfig

Properties

crud: boolean

Indicates whether CRUD operations are enabled.

delete?: Handler[]

Middleware functions for the DELETE method.

get?: Handler[]

Middleware functions for the GET method.

middlewares?: Handler[]

Array of middleware functions to apply globally.

post?: Handler[]

Middleware functions for the POST method.

put?: Handler[]

Middleware functions for the PUT method.

Generated using TypeDoc