title: auto

des: auto
note:auto
This commit is contained in:
2023-10-03 09:37:28 +08:00
parent bde21823de
commit 4f166804c4
8 changed files with 15 additions and 15 deletions

View File

@@ -1,11 +1,11 @@
import { MyConsole } from "@/app/fun/my_console";
import { myConsole } from "@/app/fun/my_console";
import prisma from "@/app/lib/prisma";
import { NextResponse } from "next/server";
export async function POST(req: Request) {
if (req.method === "POST") {
const body = await req.json();
MyConsole(body);
myConsole(body);
try {
await fetch(

View File

@@ -1,5 +1,5 @@
import { sealData } from "iron-session";
import { MyConsole } from "@/app/fun/my_console";
import { myConsole } from "@/app/fun/my_console";
import prisma from "@/app/lib/prisma";
import { data } from "autoprefixer";
import { NextResponse } from "next/server";
@@ -18,7 +18,7 @@ export async function POST(req: Request) {
},
});
MyConsole(cekUsername);
myConsole(cekUsername);
if (cekUsername)
return NextResponse.json({ status: 400, message: "Username sudah ada" });

View File

@@ -1,4 +1,4 @@
import { MyConsole } from "@/app/fun/my_console";
import { myConsole } from "@/app/fun/my_console";
import prisma from "@/app/lib/prisma";
import { NextResponse } from "next/server";
import { cookies } from "next/headers";
@@ -8,7 +8,7 @@ import {getConfig} from "@/bin/config";
export async function POST(req: Request) {
if (req.method === "POST") {
const body = await req.json();
MyConsole(body);
myConsole(body);
const data = await prisma.user.findUnique({
where: {