Files
litlyx/broker/src/routes/HealthRouter.ts
2024-05-31 14:08:51 +02:00

15 lines
288 B
TypeScript

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;