Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface ControllerRouteWithBodyOptions

Options for a controller route with a body.

Hierarchy

Index

Properties

Optional format

format: BodyFormat

If validation is enabled, this defines the input format. Default: 'JSON'

Optional limit

limit: number

The upload limit, in bytes.

Optional onError

onError: RequestErrorHandler<Request>

A custom error handler for the route.

Optional onValidationFailed

onValidationFailed: ObjectValidationFailedHandler<Request>

A custom function, that handles a failed schema validation.

Optional path

A custom path.

Optional schema

schema: AnySchema

A custom schema to check.

Optional serializer

serializer: ResponseSerializer<Request>

A custom response serializer for a route.

Optional use

use: RequestHandler | RequestHandler[]

Additional middleware(s) for the route.

Optional useAfter

useAfter: AfterRequestHandler<Request>

Optional "after-ware".

Generated using TypeDoc