From 9e6d2fe6c04329309dd146ab0b9f5fe8b68db739 Mon Sep 17 00:00:00 2001 From: Ardeman Date: Mon, 24 Feb 2025 08:17:35 +0800 Subject: [PATCH] feat: add loader to redirect to admin dashboard --- app/routes/_layout.admin._index.tsx | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 app/routes/_layout.admin._index.tsx diff --git a/app/routes/_layout.admin._index.tsx b/app/routes/_layout.admin._index.tsx new file mode 100644 index 0000000..6bb93a9 --- /dev/null +++ b/app/routes/_layout.admin._index.tsx @@ -0,0 +1,5 @@ +import { redirect } from 'react-router' + +export async function loader() { + return redirect('/admin/dashboard') +}