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-07 05:59:56 +08:00
|
|
|
console.log("---> Ping!")
|
2016-07-06 05:09:44 +08:00
|
|
|
reply("pong")
|
|
|
|
},
|
|
|
|
});
|
|
|
|
};
|