Fixed type errors in nextJS apps, added Docker files
Co-authored-by: Nicolas <nocnico@users.noreply.github.com>
This commit is contained in:
@@ -1,15 +1,11 @@
|
||||
import { NextRequest } from "next/server";
|
||||
import { sign } from "jsonwebtoken";
|
||||
import { services } from "(auth)/oauth/page";
|
||||
import { prisma } from "@repo/db";
|
||||
import { services } from "../../../../helper/authServices";
|
||||
|
||||
export const POST = async (req: NextRequest) => {
|
||||
try {
|
||||
if (
|
||||
!req.headers
|
||||
.get("content-type")
|
||||
?.includes("application/x-www-form-urlencoded")
|
||||
) {
|
||||
if (!req.headers.get("content-type")?.includes("application/x-www-form-urlencoded")) {
|
||||
return new Response("Unsupported Content-Type", { status: 415 });
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user