2024-06-13 10:11:09 +00:00
|
|
|
"use server"
|
2024-06-12 10:19:44 +00:00
|
|
|
import prisma from "./db"
|
|
|
|
export async function getStories() {
|
|
|
|
return prisma.story.findMany()
|
|
|
|
}
|
|
|
|
export async function getPubs() {
|
|
|
|
return prisma.pub.findMany()
|
|
|
|
}
|
2024-06-12 15:15:22 +00:00
|
|
|
export async function getGenres() {
|
|
|
|
return prisma.genre.findMany()
|
|
|
|
}
|
2024-06-13 19:52:44 +00:00
|
|
|
export async function getResponses() {
|
|
|
|
return prisma.response.findMany()
|
|
|
|
}
|
2024-06-12 15:15:22 +00:00
|
|
|
|