refactor: reorganize routes with admin module, asset preview, AR viewer, and 404 page

This commit is contained in:
rajun 2026-07-28 11:14:52 +05:30
parent d8e740011a
commit 1636beb629

View File

@ -1,7 +1,11 @@
import { type RouteConfig, index, route } from '@react-router/dev/routes'; import { type RouteConfig, index, route } from '@react-router/dev/routes';
export default [ export default [
index('routes/dashboard.tsx'), index('routes/admin/dashboard.tsx'),
route('login', 'routes/login.tsx'), route('login', 'routes/admin/login.tsx'),
route('ar/:id', 'qr-ar/ar-viewer.tsx'), route('preview/:id', 'routes/admin/asset-preview.tsx'),
route('ar/:id', 'routes/ar/ar-viewer.tsx'),
route('*', 'routes/not-found.tsx'),
] satisfies RouteConfig; ] satisfies RouteConfig;