intials app

This commit is contained in:
2025-08-26 15:25:09 -05:00
parent 10b56bf31f
commit d3fd5aa653
59 changed files with 22132 additions and 29 deletions

View File

@@ -0,0 +1 @@
export const printers = () => {};

View File

@@ -0,0 +1,15 @@
import type { Express, Request, Response } from "express";
import healthRoutes from './routes/healthRoutes.js'
export const setupRoutes = (app: Express, basePath: string) => {
// Root / health check
app.use(basePath + "/health", healthRoutes);
// Fallback 404 handler
app.use((req: Request, res: Response) => {
res.status(404).json({ error: "Not Found" });
});
}

View File

@@ -0,0 +1,10 @@
import { Router } from "express";
const router = Router();
// GET /health
router.get("/", (req, res) => {
res.json({ status: "ok", uptime: process.uptime() });
});
export default router;