mirror of
https://github.com/Litlyx/litlyx
synced 2025-12-12 00:38:36 +01:00
add broker
This commit is contained in:
15
broker/src/routes/HealthRouter.ts
Normal file
15
broker/src/routes/HealthRouter.ts
Normal file
@@ -0,0 +1,15 @@
|
||||
|
||||
import { Router } from "express";
|
||||
|
||||
const router = Router();
|
||||
|
||||
router.get('/', async (req, res) => {
|
||||
try {
|
||||
return res.json({ alive: true });
|
||||
} catch (ex) {
|
||||
console.error(ex);
|
||||
return res.status(500).json({ error: 'ERROR' });
|
||||
}
|
||||
});
|
||||
|
||||
export default router;
|
||||
Reference in New Issue
Block a user