Permalink
Browse files

ping: use .send instead of .end

  • Loading branch information...
1 parent a7c292d commit 2efcef1cee5425bd70b7c2fe0bb4a12b6797d54b @gaborcsardi gaborcsardi committed Jan 6, 2017
Showing with 2 additions and 2 deletions.
  1. +2 −2 routes/ping.js
View
@@ -16,8 +16,8 @@ router.get('/', function(req, res) {
res.set('Content-Type', 'application/json')
.set(200)
- .end('{ "operation": "ping",' +
- ' "message": "Thanks! Live long and prosper!" }');
+ .send('{ "operation": "ping",' +
+ ' "message": "Thanks! Live long and prosper!" }');
update_pkg_db();
update_r_db();

0 comments on commit 2efcef1

Please sign in to comment.