mirror of
https://github.com/Litlyx/litlyx
synced 2025-12-11 00:08:37 +01:00
15 lines
288 B
TypeScript
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; |