From b476b2d845d7bea1558b0b184f4632a48e56396f Mon Sep 17 00:00:00 2001 From: Ilya Radchenko Date: Tue, 15 Sep 2015 21:17:50 -0400 Subject: [PATCH] Add simple @config readme and remove todos --- README.md | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/README.md b/README.md index 8772724..84e1ed3 100644 --- a/README.md +++ b/README.md @@ -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`.