|
1 | 1 | # routing-controllers |
2 | 2 |
|
3 | | -[](https://travis-ci.org/pleerock/routing-controllers) |
4 | | -[](https://codecov.io/gh/pleerock/routing-controllers) |
| 3 | +[](https://travis-ci.org/typestack/routing-controllers) |
| 4 | +[](https://codecov.io/gh/typestack/routing-controllers) |
5 | 5 | [](https://badge.fury.io/js/routing-controllers) |
6 | | -[](https://david-dm.org/pleerock/routing-controllers) |
7 | | -[](https://gitter.im/pleerock/routing-controllers?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge) |
| 6 | +[](https://david-dm.org/typestack/routing-controllers) |
| 7 | +[](https://gitter.im/typestack/routing-controllers?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge) |
8 | 8 |
|
9 | 9 | Allows to create controller classes with methods as actions that handle requests. |
10 | 10 | You can use routing-controllers with [express.js][1] or [koa.js][2]. |
@@ -818,13 +818,13 @@ app.listen(3000); |
818 | 818 |
|
819 | 819 | ## Using middlewares |
820 | 820 |
|
821 | | -You can use any exist express / koa middleware, or create your own. |
| 821 | +You can use any existing express / koa middleware, or create your own. |
822 | 822 | To create your middlewares there is a `@Middleware` decorator, |
823 | 823 | and to use already exist middlewares there are `@UseBefore` and `@UseAfter` decorators. |
824 | 824 |
|
825 | | -### Use exist middleware |
| 825 | +### Use existing middleware |
826 | 826 |
|
827 | | -There are multiple ways to use middlewares. |
| 827 | +There are multiple ways to use middleware. |
828 | 828 | For example, lets try to use [compression](https://github.com/expressjs/compression) middleware: |
829 | 829 |
|
830 | 830 | 1. Install compression middleware: `npm install compression` |
@@ -909,7 +909,7 @@ Here is example of creating middleware for express.js: |
909 | 909 | } |
910 | 910 | ``` |
911 | 911 |
|
912 | | - Then you can them this way: |
| 912 | + Then you can use them this way: |
913 | 913 |
|
914 | 914 | ```typescript |
915 | 915 | import {Controller, UseBefore} from "routing-controllers"; |
@@ -1024,7 +1024,7 @@ export class LoggingMiddleware implements ExpressMiddlewareInterface { |
1024 | 1024 | } |
1025 | 1025 | ``` |
1026 | 1026 |
|
1027 | | -To enable this middleware specify it during routing-controllers initialization: |
| 1027 | +To enable this middleware, specify it during routing-controllers initialization: |
1028 | 1028 |
|
1029 | 1029 | ```typescript |
1030 | 1030 | import "reflect-metadata"; |
@@ -1201,7 +1201,7 @@ export class UserController { |
1201 | 1201 | If `User` is an interface - then simple literal object will be created. |
1202 | 1202 | If its a class - then instance of this class will be created. |
1203 | 1203 |
|
1204 | | -This technique works not only with `@Body`, but also with `@Param`, `@QueryParam`, `@BodyParam` and other decorators. |
| 1204 | +This technique works with `@Body`, `@Param`, `@QueryParam`, `@BodyParam`, and other decorators. |
1205 | 1205 | Learn more about class-transformer and how to handle more complex object constructions [here][4]. |
1206 | 1206 | This behaviour is enabled by default. |
1207 | 1207 | If you want to disable it simply pass `classTransformer: false` to createExpressServer method. |
@@ -1509,7 +1509,7 @@ of usage. |
1509 | 1509 |
|
1510 | 1510 | ## Release notes |
1511 | 1511 |
|
1512 | | -See information about breaking changes and release notes [here](https://github.com/pleerock/routing-controllers/tree/master/doc/release-notes.md). |
| 1512 | +See information about breaking changes and release notes [here](CHANGELOG.md). |
1513 | 1513 |
|
1514 | 1514 | [1]: http://expressjs.com/ |
1515 | 1515 | [2]: http://koajs.com/ |
|
0 commit comments