mirror of
https://github.com/zhigang1992/probot.git
synced 2026-06-19 18:14:06 +08:00
docs: Response object should call .send() and not .end() (#671)
This commit is contained in:
committed by
Jason Etcovitch
parent
ba0616d174
commit
c01361fc60
@@ -16,7 +16,7 @@ module.exports = app => {
|
||||
|
||||
// Add a new route
|
||||
router.get('/hello-world', (req, res) => {
|
||||
res.end('Hello World')
|
||||
res.send('Hello World')
|
||||
})
|
||||
}
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user