Skip to content

Commit

Permalink
add health route
Browse files Browse the repository at this point in the history
  • Loading branch information
benib committed Oct 30, 2017
1 parent 22a2052 commit eadb79a
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
10 changes: 10 additions & 0 deletions routes/health.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
module.exports = {
path: '/health',
method: 'GET',
config: {
tags: ['api']
},
handler: (request, reply) => {
reply('ok');
}
}
3 changes: 2 additions & 1 deletion routes/routes.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,6 @@ module.exports = [
require('./script.js'),
require('./schema.js'),
require('./option-availability.js'),
require('./dynamic-enum.js')
require('./dynamic-enum.js'),
require('./health.js')
]

0 comments on commit eadb79a

Please sign in to comment.