added /status endpoint

This commit is contained in:
leca 2024-11-12 12:31:56 +03:00
parent c39e8c9790
commit 0608ccda6d
1 changed files with 4 additions and 0 deletions

View File

@ -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}`)
});