first commit
This commit is contained in:
commit
0e854110d3
49 files changed
+2292
No files matched your search
@@ -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 } } },
|
||||
});
|
||||
});
|
||||
}
|
||||
Reference in new issue
Block a user