Erstes lauffähiges Grundgerüst: Monorepo, Fastify-API, React-Startseite, Docker

This commit is contained in:
2026-07-19 01:14:29 +02:00
parent 657496fe49
commit 7b8723729b
39 changed files with 4388 additions and 15 deletions

View File

@@ -0,0 +1,15 @@
import type { FastifyInstance } from "fastify";
import type { HealthStatus } from "@launchpad/shared";
const startedAt = Date.now();
export async function healthRoutes(app: FastifyInstance): Promise<void> {
app.get("/api/health", async (): Promise<HealthStatus> => {
return {
status: "ok",
timestamp: new Date().toISOString(),
uptimeSeconds: Math.round((Date.now() - startedAt) / 1000),
version: "0.1.0",
};
});
}