feat: add loader to redirect to admin dashboard
This commit is contained in:
parent
e11f007eb1
commit
9e6d2fe6c0
5
app/routes/_layout.admin._index.tsx
Normal file
5
app/routes/_layout.admin._index.tsx
Normal file
@ -0,0 +1,5 @@
|
||||
import { redirect } from 'react-router'
|
||||
|
||||
export async function loader() {
|
||||
return redirect('/admin/dashboard')
|
||||
}
|
||||
Loading…
x
Reference in New Issue
Block a user