Variables
Headers
Headers: Function = ...
Params
Params: Function = ...
Query
Query: Function = ...
logger
logger: Logger = ...
Functions
Const Controller
- Controller(path?: string): ClassDecorator
Parameters
Returns ClassDecorator
DELETE
- DELETE(path: string | RegExp): (target: Object, key: string, descriptor: TypedPropertyDescriptor<Function>) => void
Parameters
Returns (target: Object, key: string, descriptor: TypedPropertyDescriptor<Function>) => void
- (target: Object, key: string, descriptor: TypedPropertyDescriptor<Function>): void
Parameters
target: Object
key: string
descriptor: TypedPropertyDescriptor<Function>
Returns void
GET
- GET(path: string | RegExp): (target: Object, key: string, descriptor: TypedPropertyDescriptor<Function>) => void
Parameters
Returns (target: Object, key: string, descriptor: TypedPropertyDescriptor<Function>) => void
- (target: Object, key: string, descriptor: TypedPropertyDescriptor<Function>): void
Parameters
target: Object
key: string
descriptor: TypedPropertyDescriptor<Function>
Returns void
POST
- POST(path: string | RegExp): (target: Object, key: string, descriptor: TypedPropertyDescriptor<Function>) => void
Parameters
Returns (target: Object, key: string, descriptor: TypedPropertyDescriptor<Function>) => void
- (target: Object, key: string, descriptor: TypedPropertyDescriptor<Function>): void
Parameters
target: Object
key: string
descriptor: TypedPropertyDescriptor<Function>
Returns void
PUT
- PUT(path: string | RegExp): (target: Object, key: string, descriptor: TypedPropertyDescriptor<Function>) => void
Parameters
Returns (target: Object, key: string, descriptor: TypedPropertyDescriptor<Function>) => void
- (target: Object, key: string, descriptor: TypedPropertyDescriptor<Function>): void
Parameters
target: Object
key: string
descriptor: TypedPropertyDescriptor<Function>
Returns void
Validate
- Validate(ValidateOptions: { options?: ValidatorOptions; schema: any; error?: any }, type?: ValidateType): MethodDecorator
Parameters
ValidateOptions: { options?: ValidatorOptions; schema: any; error?: any }
Optional options?: ValidatorOptions
schema: any
error?:function
- error(errors: ValidationError[]): any
Parameters
errors: ValidationError[]
Returns any
Returns MethodDecorator
Http Params Decorator