Skip to content
This repository was archived by the owner on Sep 14, 2022. It is now read-only.

Commit 69db9b9

Browse files
authored
Update controllers.md
1 parent d4500e1 commit 69db9b9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/controllers.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,8 @@ Here is the `hello_world.js` implementation for the quick start example. It retr
3636
3737
function hello(req, res) {
3838
var name = req.swagger.params.name.value || 'stranger';
39-
var hello = util.format('{ "message": "Hello, %s" }', name);
40-
res.json(hello);
39+
var hello = util.format('Hello, %s!', name);
40+
res.json({ "message": hello });
4141
}
4242
```
4343

0 commit comments

Comments
 (0)