mirror of
https://github.com/docmost/docmost.git
synced 2026-05-07 06:23:06 +08:00
9b682c8af5
* replace next with vite * disable strictmode (it interferes with collaboration in dev mode)
27 lines
763 B
TypeScript
27 lines
763 B
TypeScript
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>
|
|
</>
|
|
);
|
|
}
|