From 1636beb629d305d08a6cc96ed73f2d1f4044767c Mon Sep 17 00:00:00 2001 From: rajun Date: Tue, 28 Jul 2026 11:14:52 +0530 Subject: [PATCH] refactor: reorganize routes with admin module, asset preview, AR viewer, and 404 page --- app/routes.ts | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/app/routes.ts b/app/routes.ts index 98453c5..6d73930 100644 --- a/app/routes.ts +++ b/app/routes.ts @@ -1,7 +1,11 @@ import { type RouteConfig, index, route } from '@react-router/dev/routes'; export default [ - index('routes/dashboard.tsx'), - route('login', 'routes/login.tsx'), - route('ar/:id', 'qr-ar/ar-viewer.tsx'), + index('routes/admin/dashboard.tsx'), + route('login', 'routes/admin/login.tsx'), + route('preview/:id', 'routes/admin/asset-preview.tsx'), + + route('ar/:id', 'routes/ar/ar-viewer.tsx'), + + route('*', 'routes/not-found.tsx'), ] satisfies RouteConfig;