fix: add /health route
This commit is contained in:
@@ -27,6 +27,10 @@ app.get('/no', (req, res) => {
|
|||||||
res.json({ reason });
|
res.json({ reason });
|
||||||
});
|
});
|
||||||
|
|
||||||
|
app.get('/health', (req, res) => {
|
||||||
|
res.json({"status": "ok"});
|
||||||
|
});
|
||||||
|
|
||||||
// Start server
|
// Start server
|
||||||
app.listen(PORT, () => {
|
app.listen(PORT, () => {
|
||||||
console.log(`No-as-a-Service is running on port ${PORT}`);
|
console.log(`No-as-a-Service is running on port ${PORT}`);
|
||||||
|
|||||||
Reference in New Issue
Block a user