add next app
This commit is contained in:
17
web/src/app/(home)/page.tsx
Normal file
17
web/src/app/(home)/page.tsx
Normal file
@@ -0,0 +1,17 @@
|
||||
import { UserWishlists } from "@/app/(home)/UserWishlists";
|
||||
import { cookies } from "next/headers";
|
||||
import { redirect } from "next/navigation";
|
||||
|
||||
export default async function Home() {
|
||||
const c = await cookies();
|
||||
|
||||
if (!c.has("token")) {
|
||||
throw redirect("/login");
|
||||
}
|
||||
|
||||
return (
|
||||
<div>
|
||||
<UserWishlists />
|
||||
</div>
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user