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

Commit d4500e1

Browse files
authored
Update README.md
1 parent e600fd7 commit d4500e1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,8 @@ Code your API's business logic in Node.js.
4646
```js
4747
function hello(req, res) {
4848
var name = req.swagger.params.name.value || 'stranger';
49-
var hello = util.format('{ "message": "Hello, %s" }', name);
50-
res.json(hello);
49+
var hello = util.format('Hello, %s!', name);
50+
res.json({ "message": hello });
5151
}
5252
```
5353

0 commit comments

Comments
 (0)