From 487ebbe07c57e16ac010281f1af71dd29b0b284d Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Yusuf=20Akg=C3=BCl?= <s86116@bht-berlin.de>
Date: Sat, 8 Jul 2023 20:44:44 +0200
Subject: [PATCH] test

---
 app/(content)/(home)/home/page.tsx                   | 2 ++
 app/(content)/(user)/[username]/(profile)/layout.tsx | 2 +-
 app/api/users/[username]/route.ts                    | 2 +-
 3 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/app/(content)/(home)/home/page.tsx b/app/(content)/(home)/home/page.tsx
index d159dec..fe63738 100644
--- a/app/(content)/(home)/home/page.tsx
+++ b/app/(content)/(home)/home/page.tsx
@@ -4,6 +4,7 @@ import { Gweets } from "@/components/gweets/components/gweets"
 import ScrollToTop from "@/components/scroll-to-top"
 import { Trends } from "@/components/trends/components/trends"
 import { Card } from "@/components/ui/card"
+import getURL from "@/lib/utils"
 
 export default async function HomePage() {
     return (
@@ -14,6 +15,7 @@ export default async function HomePage() {
                         <ScrollToTop />
                     </div>
                     <div className="w-full space-y-6 flex flex-col">
+                        <div>{getURL(`/api/users/`)}</div>
                         <CreateGweet />
                         <Gweets />
                     </div>
diff --git a/app/(content)/(user)/[username]/(profile)/layout.tsx b/app/(content)/(user)/[username]/(profile)/layout.tsx
index 6e61133..f79ac51 100644
--- a/app/(content)/(user)/[username]/(profile)/layout.tsx
+++ b/app/(content)/(user)/[username]/(profile)/layout.tsx
@@ -17,7 +17,7 @@ export default async function ProfileLayout({
     children: React.ReactNode
 }) {
     const user = await fetch(getURL(`/api/users/${params.username}`)).then((result) => result.json())
-    console.log("layout layer", user)
+
     return (
         <GlobalLayout
             mainContent={
diff --git a/app/api/users/[username]/route.ts b/app/api/users/[username]/route.ts
index 096a535..e089b9b 100644
--- a/app/api/users/[username]/route.ts
+++ b/app/api/users/[username]/route.ts
@@ -4,7 +4,7 @@ import { z } from "zod"
 
 export async function GET(request: Request, context: { params: { username: string } }) {
     const { username } = context.params
-    console.log("api layer", username)
+
     const idSchema = z.string()
     const zod = idSchema.safeParse(username)
 
-- 
GitLab