22 lines
451 B
JavaScript
22 lines
451 B
JavaScript
const express = require("express");
|
|
const asyncHandler = require("../middleware/asyncHandler");
|
|
const { healthCheck } = require("../modules/health/health.controller");
|
|
|
|
const router = express.Router();
|
|
|
|
/**
|
|
* @openapi
|
|
* /health:
|
|
* get:
|
|
* summary: Health check
|
|
* tags:
|
|
* - Health
|
|
* responses:
|
|
* 200:
|
|
* description: Service is healthy
|
|
*/
|
|
router.get("/", asyncHandler(healthCheck));
|
|
|
|
module.exports = router;
|
|
|