Skip to main content

Function: After()

After(func): (target, propertyKey, descriptor) => void

Defined in: service-core/src/decorators/RouteDecorators.ts:54

Indicates a provided function or list of functions to execute after the decorated function and before the response is sent to a client. Note that the function must call next() in order for this decorator to work.

Parameters

func

string | Function | (string | Function)[]

The function or list of functions to execute after the decorated function.

Returns

(target, propertyKey, descriptor) => void