mirror of
https://github.com/Foundry376/Mailspring.git
synced 2025-01-01 13:14:16 +08:00
Add authless /ping endpoint that returns "pong"
This commit is contained in:
parent
ed2e184728
commit
e2e827297c
1 changed files with 12 additions and 0 deletions
12
packages/nylas-api/routes/ping.js
Normal file
12
packages/nylas-api/routes/ping.js
Normal file
|
@ -0,0 +1,12 @@
|
|||
module.exports = (server) => {
|
||||
server.route({
|
||||
method: 'GET',
|
||||
path: '/ping',
|
||||
config: {
|
||||
auth: false,
|
||||
},
|
||||
handler: (request, reply) => {
|
||||
reply("pong")
|
||||
},
|
||||
});
|
||||
};
|
Loading…
Reference in a new issue