Skip to content
This repository has been archived by the owner on Jan 17, 2021. It is now read-only.

Commit

Permalink
Added api status
Browse files Browse the repository at this point in the history
  • Loading branch information
ferreiro committed Oct 1, 2016
1 parent 838d3a8 commit d3b94eb
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions api/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,11 @@ app.set('view engine', 'jade')

// API Route
app.use('/v1', require('./v1'))
app.get('/status', function (req, res) {
res.status(200).json({
'response': 'Everything is working correctly'
})
})
app.all('*', errors.endpointNotFound)

module.exports = app

0 comments on commit d3b94eb

Please sign in to comment.