basic table with no info
This commit is contained in:
@@ -3,15 +3,11 @@ import { createTRPCRouter, publicProcedure, protectedProcedure } from "~/server/
|
||||
import { prisma } from "~/server/db";
|
||||
|
||||
export const promptVariantsRouter = createTRPCRouter({
|
||||
getAll: publicProcedure.input(z.object({ experimentId: z.string() })).query(async ({ input }) => {
|
||||
list: publicProcedure.input(z.object({ experimentId: z.string() })).query(async ({ input }) => {
|
||||
return await prisma.promptVariant.findMany({
|
||||
where: {
|
||||
experimentId: input.experimentId,
|
||||
},
|
||||
});
|
||||
}),
|
||||
|
||||
getSecretMessage: protectedProcedure.query(() => {
|
||||
return "you can now see this secret message!";
|
||||
}),
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user