2026-06-01 21:44:29 +07:00
|
|
|
import type { Router } from "express";
|
|
|
|
|
import express from "express";
|
2026-06-01 21:53:08 +07:00
|
|
|
import { handleHealthCheck } from "./health.controller.js";
|
2026-06-01 21:44:29 +07:00
|
|
|
|
|
|
|
|
export function createHealthRouter(): Router {
|
|
|
|
|
const router = express.Router();
|
|
|
|
|
|
|
|
|
|
// GET /api/health
|
|
|
|
|
router.get("/health", handleHealthCheck);
|
|
|
|
|
|
|
|
|
|
return router;
|
|
|
|
|
}
|