added /status endpoint
This commit is contained in:
parent
c39e8c9790
commit
0608ccda6d
|
@ -19,6 +19,10 @@ app.use('/api/abstractproduct', AbstractProductRouter);
|
||||||
app.use('/api/product', ProductRouter);
|
app.use('/api/product', ProductRouter);
|
||||||
app.use('/api/category', CategoryRouter);
|
app.use('/api/category', CategoryRouter);
|
||||||
|
|
||||||
|
app.get('/status', (req, res) => {
|
||||||
|
return res.status(200).send("All OK");
|
||||||
|
});
|
||||||
|
|
||||||
app.listen(config.port, () => {
|
app.listen(config.port, () => {
|
||||||
log.info(`Application has started on port ${config.port}`)
|
log.info(`Application has started on port ${config.port}`)
|
||||||
});
|
});
|
Loading…
Reference in New Issue