File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed
Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -252,8 +252,11 @@ It adds the currently active model to the continuation. It's required for all ap
252252### .add(mw, pos?) {.method}
253253
254254Registers additional middlewares at the specified position.
255- ` mw ` must be a function that returns an express middleware.
256- ` pos ` specified the index or a relative position within the middleware chain. If not specified, the middleware is added to the end.
255+ ` mw ` can be either of:
256+ - a function that returns an express middleware
257+ - an express middleware with the common _ req_ , _ res_ , _ next_ arguments
258+ - an array of express middlewares
259+ ` pos ` specifies the index or a relative position within the middleware chain. If not specified, the middleware is added to the end.
257260
258261``` js
259262cds .middlewares .add (mw, {at: 0 }) // to the front
You can’t perform that action at this time.
0 commit comments