From e7a429a2682a8fd1ccfcda69ec54e60168ed99db Mon Sep 17 00:00:00 2001 From: kyranjamie Date: Thu, 2 Apr 2020 17:55:55 +0200 Subject: [PATCH] feat: add endpoint to query status --- server.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/server.js b/server.js index 476b701..c7fa57e 100644 --- a/server.js +++ b/server.js @@ -52,6 +52,8 @@ app.use('/api/maker', MakerController); app.use('/api', UserController); app.use('/api', WebhooksController); +app.use('/api/status', (req, res) => res.sendStatus(204)); + app.post('/api/fetch_rankings', async (req, res) => { if (process.env.API_KEY === req.query.key) { const apps = await App.findAll();