Update README.md

This commit is contained in:
Tobe Osakwe 2019-04-19 19:28:37 -04:00 committed by GitHub
parent 7d2b670231
commit 6b125807f5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -303,7 +303,7 @@ final Validator todo = new Validator({
main() async { main() async {
var app = new Angel(); 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"]}"'); res.write('You said: "${req.bodyAsMap["message"]}"');
}); });