2016-07-06 05:09:44 +08:00
|
|
|
module.exports = (server) => {
|
|
|
|
server.route({
|
|
|
|
method: 'GET',
|
|
|
|
path: '/ping',
|
|
|
|
config: {
|
|
|
|
auth: false,
|
|
|
|
},
|
|
|
|
handler: (request, reply) => {
|
2016-07-09 08:13:30 +08:00
|
|
|
request.logger.info('----> Pong!')
|
|
|
|
reply("Pong")
|
2016-07-06 05:09:44 +08:00
|
|
|
},
|
|
|
|
});
|
|
|
|
};
|