server/api/cakes.get.ts
Cake List API
Example
Return rows consumed by the fullstack page.
export default async () => {
return db.cake.findMany({
orderBy: { name: "asc" },
select: { id: true, name: true, price: true },
});
};