Skip to content

Commit

Permalink
Add simple @config readme and remove todos
Browse files Browse the repository at this point in the history
  • Loading branch information
Ilya Radchenko committed Sep 16, 2015
1 parent e03c75e commit b476b2d
Showing 1 changed file with 5 additions and 8 deletions.
13 changes: 5 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -70,14 +70,11 @@ class Users {

These are shortcuts for `@route(method, path)` where `@get('/revoke')` would be `@route('get', '/revoke')`.

### `@validate(config)`
### `@config(config)`

Add a validation object for the different types, except for the response.
`config` is an object, with keys for the different types, e.g. `payload`.
Overall configuration setting if none of the other decorators are sufficient.

## TODO
### `@validate(validateConfig)`

* `@config` - Passing a whole config, solution that would encompase all future decorators in a crude way. Most control to the user.
* `@auth` - Handy auth, without doing the whole config.
* `@cache`
* more..
Add a validation object for the different types, except for the response.
`config` is an object, with keys for the different types, e.g. `payload`.

0 comments on commit b476b2d

Please sign in to comment.