Skip to content

Commit 9b42a52

Browse files
docs: fix grammar issues in README.md
2 parents f5f4ce1 + 89d6568 commit 9b42a52

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -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.
789789
To create your middlewares there is a `@Middleware` decorator,
790790
and 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.
795795
For example, lets try to use [compression](https://github.com/expressjs/compression) middleware:
796796

797797
1. 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
997997
import "reflect-metadata";
@@ -1168,7 +1168,7 @@ export class UserController {
11681168
If `User` is an interface - then simple literal object will be created.
11691169
If 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.
11721172
Learn more about class-transformer and how to handle more complex object constructions [here][4].
11731173
This behaviour is enabled by default.
11741174
If you want to disable it simply pass `classTransformer: false` to createExpressServer method.

0 commit comments

Comments
 (0)