Create dashboard page
This commit is contained in:
@@ -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>
|
||||
)
|
||||
}
|
||||
Reference in New Issue
Block a user