Test deploy #31
1 changed files with 8 additions and 0 deletions
|
|
@ -45,6 +45,14 @@ app.get('/api/db-health', async (req, res) => {
|
|||
res.status(500).json({ connected: false, error: err.message });
|
||||
}
|
||||
});
|
||||
app.get('/api/version', async (req, res) => {
|
||||
try {
|
||||
res.json('1.0');
|
||||
} catch (err) {
|
||||
console.error(err);
|
||||
res.status(500).json({ connected: false, error: err.message });
|
||||
}
|
||||
});
|
||||
|
||||
app.listen(5172, () => {
|
||||
console.log('Server Started on port 5172');
|
||||
|
|
|
|||
Loading…
Reference in a new issue