mirror of
https://github.com/documenso/documenso.git
synced 2025-11-13 16:23:06 +10:00
remove test code
This commit is contained in:
@ -1,22 +0,0 @@
|
|||||||
import type { NextApiRequest, NextApiResponse } from "next";
|
|
||||||
import { PrismaClient } from "@prisma/client";
|
|
||||||
|
|
||||||
type Data = {
|
|
||||||
status: string;
|
|
||||||
};
|
|
||||||
|
|
||||||
export default async function handler(
|
|
||||||
req: NextApiRequest,
|
|
||||||
res: NextApiResponse<Data>
|
|
||||||
) {
|
|
||||||
const prisma = new PrismaClient();
|
|
||||||
|
|
||||||
const user = await prisma.user.create({
|
|
||||||
data: {
|
|
||||||
email: "m@ouse.de",
|
|
||||||
name: "Mickey Mouse",
|
|
||||||
},
|
|
||||||
});
|
|
||||||
|
|
||||||
res.status(200).json({ status: "User created" });
|
|
||||||
}
|
|
||||||
Reference in New Issue
Block a user