feat: implement full CRUD functionality for projects with image upload support and admin dashboard management
This commit is contained in:
19
src/app/[locale]/admin/dashboard/projects/create/page.tsx
Normal file
19
src/app/[locale]/admin/dashboard/projects/create/page.tsx
Normal file
@@ -0,0 +1,19 @@
|
||||
import { ProjectForm } from "@/features/projects/project-form";
|
||||
import { verifySession } from "@/core/security/session";
|
||||
import { redirect } from "@/i18n/routing";
|
||||
import { getLocale } from "next-intl/server";
|
||||
|
||||
export default async function CreateProjectPage() {
|
||||
const session = await verifySession();
|
||||
const locale = await getLocale();
|
||||
|
||||
if (!session) {
|
||||
redirect({ href: "/admin/login", locale });
|
||||
}
|
||||
|
||||
return (
|
||||
<div className="min-h-screen bg-muted/10 px-6 py-12">
|
||||
<ProjectForm />
|
||||
</div>
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user