@@ -785,13 +785,13 @@ app.listen(3000);
785785
786786## Using middlewares
787787
788- You can use any exist express / koa middleware, or create your own.
788+ You can use any existing express / koa middleware, or create your own.
789789To create your middlewares there is a ` @Middleware ` decorator,
790790and to use already exist middlewares there are ` @UseBefore ` and ` @UseAfter ` decorators.
791791
792- ### Use exist middleware
792+ ### Use existing middleware
793793
794- There are multiple ways to use middlewares .
794+ There are multiple ways to use middleware .
795795For example, lets try to use [ compression] ( https://github.com/expressjs/compression ) middleware:
796796
7977971 . Install compression middleware: ` npm install compression `
@@ -876,7 +876,7 @@ Here is example of creating middleware for express.js:
876876 }
877877 ` ` `
878878
879- Then you can them this way :
879+ Then you can use them this way :
880880
881881 ` ` ` typescript
882882 import {Controller, UseBefore} from "routing-controllers";
@@ -991,7 +991,7 @@ export class LoggingMiddleware implements ExpressMiddlewareInterface {
991991}
992992` ` `
993993
994- To enable this middleware specify it during routing - controllers initialization :
994+ To enable this middleware , specify it during routing - controllers initialization :
995995
996996` ` ` typescript
997997import "reflect-metadata";
@@ -1168,7 +1168,7 @@ export class UserController {
11681168If ` User ` is an interface - then simple literal object will be created.
11691169If its a class - then instance of this class will be created.
11701170
1171- This technique works not only with ` @Body ` , but also with ` @Param ` , ` @QueryParam ` , ` @BodyParam ` and other decorators.
1171+ This technique works with ` @Body ` , ` @Param ` , ` @QueryParam ` , ` @BodyParam ` , and other decorators.
11721172Learn more about class-transformer and how to handle more complex object constructions [ here] [ 4 ] .
11731173This behaviour is enabled by default.
11741174If you want to disable it simply pass ` classTransformer: false ` to createExpressServer method.
0 commit comments