From c43e6d185b7606ff8c0d038746b9e376e04143b5 Mon Sep 17 00:00:00 2001 From: eug-vs Date: Sat, 15 Aug 2020 05:07:07 +0300 Subject: feat: add ping-pong endpoint :egg: --- services/index.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/services/index.ts b/services/index.ts index f8ec3a5..5ad6579 100644 --- a/services/index.ts +++ b/services/index.ts @@ -22,6 +22,8 @@ export default (app: Application): void => { app.configure(Feedback); app.configure(Files); + app.get('/ping', (req, res) => res.send('pong')); + app.hooks({ before: { all: [tryAuthenticate, logging] -- cgit v1.2.3