16 lines
323 B
TypeScript
16 lines
323 B
TypeScript
"use server"
|
|
import prisma from "./db"
|
|
export async function getStories() {
|
|
return prisma.story.findMany()
|
|
}
|
|
export async function getPubs() {
|
|
return prisma.pub.findMany()
|
|
}
|
|
export async function getGenres() {
|
|
return prisma.genre.findMany()
|
|
}
|
|
export async function getResponses() {
|
|
return prisma.response.findMany()
|
|
}
|
|
|