Skip to content

Commit

Permalink
Ping route to make sure service is alive.
Browse files Browse the repository at this point in the history
  • Loading branch information
brentnycum committed Mar 16, 2014
1 parent 1923f67 commit e08ed5f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions app.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,10 @@ function delayPinWrite(pin, value, callback) {
}, config.RELAY_TIMEOUT);
}

app.get("/api/ping", function(req, res) {
res.json("pong");
});

app.post("/api/garage/left", function(req, res) {
async.series([
function(callback) {
Expand Down

0 comments on commit e08ed5f

Please sign in to comment.