Add authless /ping endpoint that returns "pong"

This commit is contained in:
Evan Morikawa 2016-07-05 14:09:44 -07:00
parent ed2e184728
commit e2e827297c

View file

@ -0,0 +1,12 @@
module.exports = (server) => {
server.route({
method: 'GET',
path: '/ping',
config: {
auth: false,
},
handler: (request, reply) => {
reply("pong")
},
});
};