Skip to content

Commit 727032e

Browse files
Merge pull request #13471 from le-harivansh/patch-2
doc: fix typos & clarify comments
2 parents 685b5fd + 025ed53 commit 727032e

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

packages/common/interfaces/middleware/middleware-config-proxy.interface.ts

+4-3
Original file line numberDiff line numberDiff line change
@@ -7,16 +7,17 @@ import { MiddlewareConsumer } from './middleware-consumer.interface';
77
*/
88
export interface MiddlewareConfigProxy {
99
/**
10-
* Excludes routes from the currently processed middleware.
10+
* Routes to exclude from the current middleware.
1111
*
1212
* @param {(string | RouteInfo)[]} routes
1313
* @returns {MiddlewareConfigProxy}
1414
*/
1515
exclude(...routes: (string | RouteInfo)[]): MiddlewareConfigProxy;
1616

1717
/**
18-
* Attaches passed either routes or controllers to the currently configured middleware.
19-
* If you pass a class, Nest would attach middleware to every path defined within this controller.
18+
* Attaches either routes or controllers to the current middleware.
19+
* If you pass a controller class, Nest will attach the current middleware to every path
20+
* defined within it.
2021
*
2122
* @param {(string | Type | RouteInfo)[]} routes
2223
* @returns {MiddlewareConsumer}

0 commit comments

Comments
 (0)