initial version of the app

This commit is contained in:
mikicvi
2025-09-21 17:11:02 +01:00
commit c8062cf96b
101 changed files with 23061 additions and 0 deletions
+16
View File
@@ -0,0 +1,16 @@
import { redirect } from 'next/navigation';
import { getSession } from '@/lib/session';
export default async function HomePage() {
const session = await getSession();
if (session) {
if (session.role === 'admin') {
redirect('/admin');
} else {
redirect('/dashboard');
}
} else {
redirect('/login');
}
}