Skip to content

Commit

Permalink
Merge pull request #13471 from le-harivansh/patch-2
Browse files Browse the repository at this point in the history
doc: fix typos & clarify comments
  • Loading branch information
kamilmysliwiec committed Apr 21, 2024
2 parents 685b5fd + 025ed53 commit 727032e
Showing 1 changed file with 4 additions and 3 deletions.
Expand Up @@ -7,16 +7,17 @@ import { MiddlewareConsumer } from './middleware-consumer.interface';
*/
export interface MiddlewareConfigProxy {
/**
* Excludes routes from the currently processed middleware.
* Routes to exclude from the current middleware.
*
* @param {(string | RouteInfo)[]} routes
* @returns {MiddlewareConfigProxy}
*/
exclude(...routes: (string | RouteInfo)[]): MiddlewareConfigProxy;

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

0 comments on commit 727032e

Please sign in to comment.