Skip to content
Snippets Groups Projects
Commit 487ebbe0 authored by Yusuf Akgül's avatar Yusuf Akgül :hatching_chick:
Browse files

test

parent 56ad9237
No related branches found
No related tags found
1 merge request!40test
Pipeline #39712 passed
......@@ -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>
......
......@@ -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={
......
......@@ -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)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment