mirror of
https://github.com/docmost/docmost.git
synced 2025-11-15 18:31:10 +10:00
switch to nx monorepo
This commit is contained in:
26
apps/client/src/App.tsx
Normal file
26
apps/client/src/App.tsx
Normal file
@ -0,0 +1,26 @@
|
||||
import { Route, Routes } from 'react-router-dom';
|
||||
import { Welcome } from '@/pages/welcome';
|
||||
import SignUpPage from '@/pages/auth/signup';
|
||||
import LoginPage from '@/pages/auth/login';
|
||||
import DashboardLayout from '@/components/layouts/layout';
|
||||
import Home from '@/pages/dashboard/home';
|
||||
import Page from '@/pages/page/page';
|
||||
|
||||
export default function App() {
|
||||
|
||||
return (
|
||||
<>
|
||||
<Routes>
|
||||
<Route index element={<Welcome />} />
|
||||
<Route path={'/login'} element={<LoginPage />} />
|
||||
<Route path={'/signup'} element={<SignUpPage />} />
|
||||
|
||||
<Route element={<DashboardLayout />}>
|
||||
<Route path={'/home'} element={<Home />} />
|
||||
<Route path={'/p/:pageId'} element={<Page />} />
|
||||
</Route>
|
||||
|
||||
</Routes>
|
||||
</>
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user