Update README.md
This commit is contained in:
parent
7d2b670231
commit
6b125807f5
1 changed files with 1 additions and 1 deletions
|
@ -303,7 +303,7 @@ final Validator todo = new Validator({
|
|||
main() async {
|
||||
var app = new Angel();
|
||||
|
||||
app.chain(validate(echo)).post('/echo', (req, res) async {
|
||||
app.chain([validate(echo)]).post('/echo', (req, res) async {
|
||||
res.write('You said: "${req.bodyAsMap["message"]}"');
|
||||
});
|
||||
|
||||
|
|
Loading…
Reference in a new issue