Skip to content

Commit

Permalink
fixed types on the api
Browse files Browse the repository at this point in the history
  • Loading branch information
Nathan-Roberts123 committed May 3, 2024
1 parent 1447994 commit 82ffe5b
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/app/api/client/[clientId]/route.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
4 changes: 2 additions & 2 deletions src/app/api/client/route.ts
Original file line number Diff line number Diff line change
@@ -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";
Expand All @@ -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) {
Expand Down
4 changes: 2 additions & 2 deletions src/app/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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({
Expand Down

0 comments on commit 82ffe5b

Please sign in to comment.