From 0608ccda6d56cac0455ec89bdecf07b24bd696e1 Mon Sep 17 00:00:00 2001 From: leca Date: Tue, 12 Nov 2024 12:31:56 +0300 Subject: [PATCH] added /status endpoint --- src/index.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/index.js b/src/index.js index 7e93d5b..736ae40 100644 --- a/src/index.js +++ b/src/index.js @@ -19,6 +19,10 @@ app.use('/api/abstractproduct', AbstractProductRouter); app.use('/api/product', ProductRouter); app.use('/api/category', CategoryRouter); +app.get('/status', (req, res) => { + return res.status(200).send("All OK"); +}); + app.listen(config.port, () => { log.info(`Application has started on port ${config.port}`) }); \ No newline at end of file