NextJS_DOC/pages/api/users.js

7 lines
158 B
JavaScript
Raw Permalink Normal View History

2023-03-24 10:11:04 +00:00
import prisma from '../../lib/Prisma'
export default async function handle(req, res) {
const feed = await prisma.users.findMany();
res.json(feed);
}