Create dashboard page

This commit is contained in:
2024-06-20 14:06:07 +04:00
parent a14c1be810
commit 7b77ee2fc2
2 changed files with 28 additions and 6 deletions
+14
View File
@@ -0,0 +1,14 @@
import {redirect} from 'next/navigation'
import {auth} from '../../auth.js'
export default async function DashboardPage() {
const session = await auth()
if (!session) {
redirect('/login')
}
return (
<div>DashboardPage</div>
)
}