title: auto
des: auto note:auto
This commit is contained in:
@@ -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(
|
||||
|
||||
@@ -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" });
|
||||
|
||||
@@ -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: {
|
||||
|
||||
Reference in New Issue
Block a user