first commit

This commit is contained in:
Rodrigo Bertoldo de Sousa Martins committed 2026-09-07 20:46:08 -03:00
commit 0e854110d3
49 files changed
+2292

No files matched your search

+11
View File
@@ -0,0 +1,11 @@
import type { FastifyInstance } from "fastify";
import { prisma } from "../lib/prisma.js";
export async function systemsRoutes(app: FastifyInstance) {
app.get("/api/systems", async () => {
return prisma.anatomicalSystem.findMany({
orderBy: { order: "asc" },
include: { _count: { select: { structures: true } } },
});
});
}