Skip to content

Commit

Permalink
update comment
Browse files Browse the repository at this point in the history
  • Loading branch information
DavidCai1111 committed Mar 27, 2016
1 parent 549ce7c commit da855ae
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ Mount all routers specified by the `@router` decorator.
Supposed that all your router files are put in `./apis`:

```js
// ./apis/user.js
// apis/user.js
'use strict'
const {router} = require('koa-decorators')

Expand All @@ -52,6 +52,7 @@ module.exports = class UserController {
And in outside `app.js`:

```js
// app.js
'use strict'
const Koa = require('koa')
const {route} = require('koa-decorators')
Expand Down Expand Up @@ -81,7 +82,7 @@ It accepts two arguments:
#### Example

```js
// ./apis/user.js
// apis/user.js
'use strict'
const {router, required} = require('koa-decorators')

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "koa-decorators",
"version": "1.2.1",
"version": "1.2.2",
"description": "Decorate koa",
"main": "./lib/index.js",
"scripts": {
Expand Down

0 comments on commit da855ae

Please sign in to comment.