mirror of
https://github.com/trafficlunar/tomodachi-share.git
synced 2026-06-28 14:44:15 +00:00
feat: non-functional submit page
This commit is contained in:
parent
84a732c34d
commit
b35c0a53ea
6 changed files with 187 additions and 3 deletions
11
src/app/submit/page.tsx
Normal file
11
src/app/submit/page.tsx
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
import { redirect } from "next/navigation";
|
||||
import { auth } from "@/lib/auth";
|
||||
import SubmitForm from "../components/submit-form";
|
||||
|
||||
export default async function SubmitPage() {
|
||||
const session = await auth();
|
||||
|
||||
if (!session) redirect("/login");
|
||||
|
||||
return <SubmitForm />;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue