- Remove empty controllers/, services/, repositories/ subdirectories - Move routes/index.ts into module.routes.ts (flat naming convention) - Update imports in http/app.ts Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
13 lines
299 B
TypeScript
13 lines
299 B
TypeScript
import type { Router } from "express";
|
|
import express from "express";
|
|
import { handleHealthCheck } from "./health.controller.js";
|
|
|
|
export function createHealthRouter(): Router {
|
|
const router = express.Router();
|
|
|
|
// GET /api/health
|
|
router.get("/health", handleHealthCheck);
|
|
|
|
return router;
|
|
}
|