Files
FEDEO/backend/src/routes/health.ts
2026-02-14 12:16:50 +01:00

13 lines
352 B
TypeScript

import { FastifyInstance } from "fastify";
export default async function routes(server: FastifyInstance) {
server.get("/ping", async () => {
// Testquery gegen DB
const result = await server.db.execute("SELECT NOW()");
return {
status: "ok",
db: JSON.stringify(result.rows[0]),
};
});
}