diff --git a/src/app/api/client/[clientId]/route.ts b/src/app/api/client/[clientId]/route.ts index 1954ec3..1302421 100644 --- a/src/app/api/client/[clientId]/route.ts +++ b/src/app/api/client/[clientId]/route.ts @@ -29,7 +29,7 @@ export async function GET( } export async function POST( - req: NextResponse, + req: NextRequest, { params }: { params: { clientId: string } } ) { const session = await getServerSession(OPTIONS); diff --git a/src/app/api/client/route.ts b/src/app/api/client/route.ts index 99954fe..d5a40f9 100644 --- a/src/app/api/client/route.ts +++ b/src/app/api/client/route.ts @@ -1,4 +1,4 @@ -import { NextResponse } from "next/server"; +import { NextRequest, NextResponse } from "next/server"; import { ZClient } from "@/lib/types"; import { createClient, getClients } from "@/lib/services/client"; import { getServerSession } from "next-auth"; @@ -23,7 +23,7 @@ export async function GET() { } } -export async function POST(req: NextResponse) { +export async function POST(req: NextRequest) { const session = await getServerSession(OPTIONS); if (!session) { diff --git a/src/app/layout.tsx b/src/app/layout.tsx index 2a350a6..18ceeda 100644 --- a/src/app/layout.tsx +++ b/src/app/layout.tsx @@ -6,8 +6,8 @@ import { Toaster } from "@/components/ui/toaster"; const inter = Inter({ subsets: ["latin"] }); export const metadata: Metadata = { - title: "Create Next App", - description: "Generated by create next app", + title: "Client Manager", + description: "Manage your clients effectively", }; export default function RootLayout({