diff options
author | eug-vs <eug-vs@keemail.me> | 2020-08-15 05:07:07 +0300 |
---|---|---|
committer | eug-vs <eug-vs@keemail.me> | 2020-08-15 05:07:07 +0300 |
commit | c43e6d185b7606ff8c0d038746b9e376e04143b5 (patch) | |
tree | b57ed163e815c91cb3f5431e88fa703f3511f2ae | |
parent | 3e966272b855b4c167582abf21439429d11c2c8b (diff) | |
download | which-api-c43e6d185b7606ff8c0d038746b9e376e04143b5.tar.gz |
feat: add ping-pong endpoint :egg:
-rw-r--r-- | services/index.ts | 2 |
1 files changed, 2 insertions, 0 deletions
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] |