aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoreug-vs <eug-vs@keemail.me>2020-08-15 05:07:07 +0300
committereug-vs <eug-vs@keemail.me>2020-08-15 05:07:07 +0300
commitc43e6d185b7606ff8c0d038746b9e376e04143b5 (patch)
treeb57ed163e815c91cb3f5431e88fa703f3511f2ae
parent3e966272b855b4c167582abf21439429d11c2c8b (diff)
downloadwhich-api-c43e6d185b7606ff8c0d038746b9e376e04143b5.tar.gz
feat: add ping-pong endpoint :egg:
-rw-r--r--services/index.ts2
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]